From: Daniel Hobi Date: Thu, 16 Sep 2010 12:36:09 +0000 (+0200) Subject: tools/env: fail on invalid options X-Git-Tag: v2010.09-rc2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=29ccd7c312f63e87a520b95dd9ec8fd2e1b9a3a6;p=u-boot tools/env: fail on invalid options Signed-off-by: Daniel Hobi --- diff --git a/tools/env/fw_env_main.c b/tools/env/fw_env_main.c index baf3a4d909..c65405731c 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; } }