summaryrefslogtreecommitdiff
path: root/tools/env
diff options
context:
space:
mode:
authorDaniel Hobi <daniel.hobi@schmid-telecom.ch>2010-09-16 14:36:09 +0200
committerWolfgang Denk <wd@denx.de>2010-09-18 23:56:19 +0200
commit29ccd7c312f63e87a520b95dd9ec8fd2e1b9a3a6 (patch)
treefddf819874fd39d5815e71b5993d18306f4754f6 /tools/env
parent122bc08845c25367d23e3d7a74c29b7d1ac07234 (diff)
downloadu-boot-imx-29ccd7c312f63e87a520b95dd9ec8fd2e1b9a3a6.zip
u-boot-imx-29ccd7c312f63e87a520b95dd9ec8fd2e1b9a3a6.tar.gz
u-boot-imx-29ccd7c312f63e87a520b95dd9ec8fd2e1b9a3a6.tar.bz2
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.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;
}
}