mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 22:51:49 +01: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
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…
x
Reference in New Issue
Block a user