]> granicus.if.org Git - flex/commitdiff
Hardcode flex name in --help text
authorExplorer09 <explorer09@gmail.com>
Thu, 20 Jul 2017 04:05:25 +0000 (12:05 +0800)
committerWill Estes <westes575@gmail.com>
Thu, 24 Aug 2017 12:34:23 +0000 (08:34 -0400)
Don't use program_name in the description of -T/--trace or -V/--version
option. It's ugly when user invokes flex with a long path like
"/home/username/tools/bin/my-custom-built-flex".

This solution is not long term. If possible, the help text should be
modified so that the "flex" name is no longer needed below the first
"Usage:" line. All translations of help text will need to be updated
as well.

src/main.c

index a55871e327f4516e0c8806cc1012504a9059363b..bf8c44d85c432a0d67aae28281ad068c6259fcea 100644 (file)
@@ -1860,6 +1860,6 @@ void usage (void)
                  "  -?\n"
                  "  -h, --help              produce this help message\n"
                  "  -V, --version           report %s version\n"),
-                backing_name, program_name, outfile_path, program_name);
+                backing_name, "flex", outfile_path, "flex");
 
 }