aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index d9408f38..18daafbf 100644
--- a/main.c
+++ b/main.c
@@ -92,6 +92,7 @@ void toybox_main(void)
if (toys.argv[1]) {
if (toys.argv[1][0]!='-') {
toy_exec(toys.argv+1);
+ toys.which = toy_list;
error_exit("Unknown command %s",toys.argv[1]);
}
}