diff options
Diffstat (limited to 'ubi-utils/ubirmvol.c')
-rw-r--r-- | ubi-utils/ubirmvol.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ubi-utils/ubirmvol.c b/ubi-utils/ubirmvol.c index 3370aff..049e70d 100644 --- a/ubi-utils/ubirmvol.c +++ b/ubi-utils/ubirmvol.c @@ -109,12 +109,17 @@ static int parse_opt(int argc, char * const argv[]) 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(); exit(EXIT_SUCCESS); |