Telling the user "this bit is wrong" is more useful than telling them "these are all the potential things that would be right; actual error identification is left as an exercise for the reader". Signed-off-by: Laine Stump <laine(a)redhat.com> --- conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.c b/conf.c index 1bfbc55..ce4e3e5 100644 --- a/conf.c +++ b/conf.c @@ -1539,7 +1539,7 @@ void conf(struct ctx *c, int argc, char **argv) if (c->mode == MODE_PASTA) conf_pasta_ns(&netns_only, userns, netns, optind, argc, argv); else if (optind != argc) - usage(argv[0]); + errexit("Extra non-option argument: %s", argv[optind]); isolate_user(uid, gid, !netns_only, userns, c->mode); -- 2.39.1