Use file extension to auto detect output format!

This commit is contained in:
Mike Farah
2023-03-15 13:14:40 +11:00
parent c1a236d720
commit 5a62b07d72
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ func InputFormatFromString(format string) (InputFormat, error) {
case "tsv", "t":
return TSVObjectInputFormat, nil
default:
return 0, fmt.Errorf("unknown format '%v' please use [yaml|xml|props]", format)
return 0, fmt.Errorf("unknown format '%v' please use [yaml|json|props|csv|tsv|xml]", format)
}
}