diff options
author | Elliott Hughes <enh@google.com> | 2019-06-24 22:38:48 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-06-25 11:58:18 -0500 |
commit | 2eefbe410740c165c71aca9f9d8e06096140c16a (patch) | |
tree | d020edcda8dcb4cad59cf268f9474197faa4ec2b | |
parent | 600baebaced399f4a5528515811ac43428a7bc30 (diff) | |
download | toybox-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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? |