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 5a2a272d..07fd3415 100644
--- a/main.c
+++ b/main.c
@@ -70,6 +70,7 @@ static const int NEED_OPTIONS =
static void unknown(char *name)
{
toys.exitval = 127;
+ toys.which = toy_list;
error_exit("Unknown command %s", name);
}