diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-01-28 06:25:20 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-01-28 06:25:20 -0800 |
commit | 192463ea5d48fff6381de287a5c1b107c3e870f2 (patch) | |
tree | c3f5df4c7e3ac34c064bdee7d129f17b00fa7fe9 | |
parent | b839a3fb4b337f2d48a05f580550698f3eeef9f5 (diff) | |
download | txr-192463ea5d48fff6381de287a5c1b107c3e870f2.tar.gz txr-192463ea5d48fff6381de287a5c1b107c3e870f2.tar.bz2 txr-192463ea5d48fff6381de287a5c1b107c3e870f2.zip |
command line: improve -c option diagnostic.
* txr.c (txr_main): Fix misleading message formatting here.
The spec_file string is irrelevant; we must show the
argument to -c which is in arg. The name of the input source
is spec_file_str; let's show that.
-rw-r--r-- | txr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -826,8 +826,8 @@ int txr_main(int argc, char **argv) } if (parse_stream) { format(std_error, - lit("~a: -c ~a: input file has already been established\n"), - prog_string, spec_file, nao); + lit("~a: -c ~a: input source ~a has already been established\n"), + prog_string, arg, spec_file_str, nao); return EXIT_FAILURE; } specstring = arg; |