]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools/env: fail on invalid options
authorDaniel Hobi <daniel.hobi@schmid-telecom.ch>
Thu, 16 Sep 2010 12:36:09 +0000 (14:36 +0200)
committerWolfgang 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

index baf3a4d90906dc9c76bb92cac82938fac564f5bc..c65405731c7b0b4d7e8fb4c6bdebeec2d4940b7d 100644 (file)
@@ -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;
                }
        }