From 77e0bdb937d0e524d6bbb8116acfde5b13f4ca4a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 19 Dec 2016 01:47:31 +0100 Subject: cg-query, cg-remove: reject unrecognised options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cg-query.c | 2 ++ src/cg-remove.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/cg-query.c b/src/cg-query.c index c2e35eb..23b6349 100644 --- a/src/cg-query.c +++ b/src/cg-query.c @@ -414,6 +414,8 @@ int main(int argc, char* argv[]) if ((class[0] == '*') && (class[1] == '\0')) query.coalesce = 1; break; + default: + usage(); } ARGEND; diff --git a/src/cg-remove.c b/src/cg-remove.c index bfab074..e7315e8 100644 --- a/src/cg-remove.c +++ b/src/cg-remove.c @@ -296,6 +296,8 @@ int main(int argc, char* argv[]) case 'c': crtcs[crtcs_n++] = EARGF(usage()); break; + default: + usage(); } ARGEND; -- cgit v1.2.3-70-g09d2