projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
122bc08
)
tools/env: fail on invalid options
author
Daniel Hobi
<daniel.hobi@schmid-telecom.ch>
Thu, 16 Sep 2010 12:36:09 +0000
(14:36 +0200)
committer
Wolfgang Denk
<wd@denx.de>
Sat, 18 Sep 2010 21:56:19 +0000
(23:56 +0200)
Signed-off-by: Daniel Hobi <daniel.hobi@schmid-telecom.ch>
tools/env/fw_env_main.c
patch
|
blob
|
history
diff --git
a/tools/env/fw_env_main.c
b/tools/env/fw_env_main.c
index baf3a4d90906dc9c76bb92cac82938fac564f5bc..c65405731c7b0b4d7e8fb4c6bdebeec2d4940b7d 100644
(file)
--- 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;
}
}