eolian: help and version shall not cause an error exit status

eolian_gen called with --help or --version is a valid action. It shall
terminates with the 0 exit status.
This commit is contained in:
Jean Guyomarc'h 2017-05-06 21:15:40 +02:00
parent 73592d4e72
commit b67c13810b
1 changed files with 2 additions and 0 deletions

View File

@ -460,9 +460,11 @@ main(int argc, char **argv)
break;
case 'h':
_print_usage(argv[0], stdout);
pret = 0;
goto end;
case 'v':
_print_version(stdout);
pret = 0;
goto end;
default:
_print_usage(argv[0], stderr);