mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +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':
|
case 'h':
|
||||||
usage();
|
usage();
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
|
default: /* '?' */
|
||||||
|
fprintf(stderr, "Try `%s --help' for more information."
|
||||||
|
"\n", cmdname);
|
||||||
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue