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 | d0d28ade066af5ae00a2ec00f428065c720a6b2d (patch) | |
tree | c3f5df4c7e3ac34c064bdee7d129f17b00fa7fe9 | |
parent | de7bf991a1a114cd587109b8c632f5efef166930 (diff) | |
download | txr-d0d28ade066af5ae00a2ec00f428065c720a6b2d.tar.gz txr-d0d28ade066af5ae00a2ec00f428065c720a6b2d.tar.bz2 txr-d0d28ade066af5ae00a2ec00f428065c720a6b2d.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; |