Improve help message on non-existent verb (#1798)

This commit is contained in:
John Kerl 2025-05-05 09:33:03 -04:00 committed by GitHub
parent bbcf903647
commit ca7d47454d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -192,8 +192,8 @@ func parseCommandLinePassOne(
transformerSetup := transformers.LookUp(verb)
if transformerSetup == nil {
fmt.Fprintf(os.Stderr,
"%s: verb \"%s\" not found. Please use \"%s --help\" for a list.\n",
"mlr", verb, "mlr")
"mlr: verb \"%s\" not found. Please use \"mlr -l\" for a list.\n",
verb)
os.Exit(1)
}