From 2eefbe410740c165c71aca9f9d8e06096140c16a Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 24 Jun 2019 22:38:48 -0700 Subject: 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") --- lib/args.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/args.c') 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? -- cgit v1.2.3