From b115f389b284a13b974bba05c25896feeec716ec Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Thu, 20 Jul 2017 12:05:25 +0800 Subject: 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. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') 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"); } -- cgit v1.2.3