aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-06-24 22:38:48 -0700
committerRob Landley <rob@landley.net>2019-06-25 11:58:18 -0500
commit2eefbe410740c165c71aca9f9d8e06096140c16a (patch)
treed020edcda8dcb4cad59cf268f9474197faa4ec2b
parent600baebaced399f4a5528515811ac43428a7bc30 (diff)
downloadtoybox-2eefbe410740c165c71aca9f9d8e06096140c16a.tar.gz
lib/args.c: add quotes.
This failure was a little hard to parse: tar: Unknown option mode (see "tar --help") This would have been clearer: tar: Unknown option 'mode' (see "tar --help")
-rw-r--r--lib/args.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/args.c b/lib/args.c
index b0bede19..89c82ca7 100644
--- a/lib/args.c
+++ b/lib/args.c
@@ -137,7 +137,7 @@ static int gotflag(struct getoptflagstate *gof, struct opts *opt)
// Did we recognize this option?
if (!opt) {
if (gof->noerror) return 1;
- help_exit("Unknown option %s", gof->arg);
+ help_exit("Unknown option '%s'", gof->arg);
}
// Might enabling this switch off something else?