diff options
Diffstat (limited to 'ubi-utils/ubiblock.c')
-rw-r--r-- | ubi-utils/ubiblock.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ubi-utils/ubiblock.c b/ubi-utils/ubiblock.c index 1e12be8..8e36678 100644 --- a/ubi-utils/ubiblock.c +++ b/ubi-utils/ubiblock.c @@ -78,11 +78,15 @@ static int parse_opt(int argc, char * const argv[]) args.node = optarg; break; case 'h': - case '?': printf("%s\n\n", doc); printf("%s\n\n", usage); printf("%s\n", optionsstr); exit(EXIT_SUCCESS); + case '?': + printf("%s\n\n", doc); + printf("%s\n\n", usage); + printf("%s\n", optionsstr); + return -1; case 'V': common_print_version(); |