diff options
author | Daniel Hobi | 2010-09-16 14:36:09 +0200 |
---|---|---|
committer | Wolfgang Denk | 2010-09-18 23:56:19 +0200 |
commit | 29ccd7c312f63e87a520b95dd9ec8fd2e1b9a3a6 (patch) | |
tree | fddf819874fd39d5815e71b5993d18306f4754f6 /tools/env | |
parent | 122bc08845c25367d23e3d7a74c29b7d1ac07234 (diff) |
tools/env: fail on invalid options
Signed-off-by: Daniel Hobi <daniel.hobi@schmid-telecom.ch>
Diffstat (limited to 'tools/env')
-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 baf3a4d9090..c65405731c7 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; } } |