main: return EXIT_FAILURE when argument parsing fails

feature/tap-sh
William Pitcock 2012-07-20 17:19:43 -05:00
parent 3c31c01db4
commit e5efad7df5
1 changed files with 4 additions and 0 deletions

4
main.c
View File

@ -537,6 +537,10 @@ main(int argc, char *argv[])
case 29:
required_max_module_version = pkg_optarg;
break;
case '?':
case ':':
return EXIT_FAILURE;
break;
default:
break;
}