From 14bdf8689990afdb5fd8caaf448e9c7d2c0d9c99 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 2 Apr 2011 15:44:34 +0200 Subject: [PATCH] cli: do not return 0 if the command was invalid --- cli.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cli.c b/cli.c index 0e98aa7..b660273 100644 --- a/cli.c +++ b/cli.c @@ -687,10 +687,9 @@ int main(int argc, char **argv) ret = uci_cmd(argc - 1, argv + 1); if (input != stdin) fclose(input); - if (ret == 255) { + + if (ret == 255) uci_usage(); - return 0; - } uci_free_context(ctx); -- 2.30.2