From e5efad7df581a8633b1fa358ef48dbdf105c0cda Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 20 Jul 2012 17:19:43 -0500 Subject: [PATCH] main: return EXIT_FAILURE when argument parsing fails --- main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.c b/main.c index 40f47d8..7cea5ee 100644 --- a/main.c +++ b/main.c @@ -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; }