aboutsummaryrefslogtreecommitdiff
path: root/lib/args.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/args.c')
-rw-r--r--lib/args.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/args.c b/lib/args.c
index 1f42cdde..e6378beb 100644
--- a/lib/args.c
+++ b/lib/args.c
@@ -360,6 +360,7 @@ void parse_optflaglist(struct getoptflagstate *gof)
if (!opt) break;
if (bits&(1<<i)) opt->dex[idx] |= bits&~(1<<i);
} else {
+ if (*options==1) break;
if (CFG_TOYBOX_DEBUG && !opt)
error_exit("[] unknown target %c", *options);
if (opt->c == *options) {