diff options
author | Daniel Hobi <daniel.hobi@schmid-telecom.ch> | 2010-09-16 12:36:09 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-09-18 21:56:19 (GMT) |
commit | 29ccd7c312f63e87a520b95dd9ec8fd2e1b9a3a6 (patch) | |
tree | fddf819874fd39d5815e71b5993d18306f4754f6 /tools | |
parent | 122bc08845c25367d23e3d7a74c29b7d1ac07234 (diff) | |
download | u-boot-29ccd7c312f63e87a520b95dd9ec8fd2e1b9a3a6.tar.xz |
tools/env: fail on invalid options
Signed-off-by: Daniel Hobi <daniel.hobi@schmid-telecom.ch>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/env/fw_env_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } } |