mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
tools/env: fail on invalid options
Signed-off-by: Daniel Hobi <daniel.hobi@schmid-telecom.ch>
This commit is contained in:
parent
122bc08845
commit
29ccd7c312
1 changed files with 4 additions and 0 deletions
4
tools/env/fw_env_main.c
vendored
4
tools/env/fw_env_main.c
vendored
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue