[pacman-dev] [PATCH 2/3] vercmp: remove --usage variant of the -help option

Eli Schwartz eschwartz at archlinux.org
Sun Dec 17 19:28:23 UTC 2017


I think two ways to ask for this are enough for everyone, and we have
never documented this anyway.

Signed-off-by: Eli Schwartz <eschwartz at archlinux.org>
---
 src/util/vercmp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/util/vercmp.c b/src/util/vercmp.c
index 7b34b30a..42639bec 100644
--- a/src/util/vercmp.c
+++ b/src/util/vercmp.c
@@ -47,8 +47,7 @@ int main(int argc, char *argv[])
 		return 2;
 	}
 	if(argc > 1 &&
-			(strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0
-			 || strcmp(argv[1], "--usage") == 0)) {
+			(strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0)) {
 		usage();
 		return 0;
 	}
-- 
2.15.1


More information about the pacman-dev mailing list