summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Hobi <daniel.hobi@schmid-telecom.ch>2010-09-16 12:36:09 (GMT)
committerWolfgang Denk <wd@denx.de>2010-09-18 21:56:19 (GMT)
commit29ccd7c312f63e87a520b95dd9ec8fd2e1b9a3a6 (patch)
treefddf819874fd39d5815e71b5993d18306f4754f6 /tools
parent122bc08845c25367d23e3d7a74c29b7d1ac07234 (diff)
downloadu-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.c4
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;
}
}