From 509f8aa07cf97f4d7b125ee8ffa96f9439db351c Mon Sep 17 00:00:00 2001
From: Petr Baudis <pasky@ucw.cz>
Date: Wed, 7 Mar 2012 17:02:29 +0100
Subject: [PATCH] compctl: Show usage on unrecognized options

---
 compctl.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/compctl.c b/compctl.c
index 82c3191..9151ea5 100644
--- a/compctl.c
+++ b/compctl.c
@@ -233,6 +233,10 @@ main(int argc, char *argv[])
 
 		} else if (!strcmp(cmd, "--help")) {
 			help(stdout);
+
+		} else {
+			help(stderr);
+			return EXIT_FAILURE;
 		}
 	}
 
-- 
GitLab