diff options
authorExplorer09 <>2017-07-20 12:05:25 +0800
committerWill Estes <>2017-08-24 08:34:23 -0400
commitb115f389b284a13b974bba05c25896feeec716ec (patch)
parenta657f0c6f564d2edc6e34e0e9715a95b13bdb304 (diff)
Hardcode flex name in --help text
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.
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index a55871e..bf8c44d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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");