From: Daniel Hobi Date: Thu, 16 Sep 2010 12:36:09 +0000 (+0200) Subject: tools/env: fail on invalid options X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=29ccd7c312f63e87a520b95dd9ec8fd2e1b9a3a6;p=u-boot.git 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; } }