summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-01-28 06:25:20 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-01-28 06:25:20 -0800
commitd0d28ade066af5ae00a2ec00f428065c720a6b2d (patch)
treec3f5df4c7e3ac34c064bdee7d129f17b00fa7fe9
parentde7bf991a1a114cd587109b8c632f5efef166930 (diff)
downloadtxr-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/txr.c b/txr.c
index cb2e10f0..584ec159 100644
--- a/txr.c
+++ b/txr.c
@@ -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;