From 29ccd7c312f63e87a520b95dd9ec8fd2e1b9a3a6 Mon Sep 17 00:00:00 2001 From: Daniel Hobi Date: Thu, 16 Sep 2010 14:36:09 +0200 Subject: [PATCH] tools/env: fail on invalid options Signed-off-by: Daniel Hobi --- tools/env/fw_env_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/env/fw_env_main.c b/tools/env/fw_env_main.c index baf3a4d..c654057 100644 --- a/tools/env/fw_env_main.c +++ b/tools/env/fw_env_main.c @@ -105,6 +105,10 @@ main(int argc, char *argv[]) case 'h': usage(); return EXIT_SUCCESS; + default: /* '?' */ + fprintf(stderr, "Try `%s --help' for more information." + "\n", cmdname); + return EXIT_FAILURE; } }