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

Message ID 20171217192824.26777-2-eschwartz@archlinux.org
State Accepted, archived
Headers show
Series [pacman-dev,1/3] vercmp: fail when the wrong number of arguments are provided | expand

Commit Message

Eli Schwartz Dec. 17, 2017, 7:28 p.m. UTC
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@archlinux.org>
---
 src/util/vercmp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Allan McRae Jan. 6, 2018, 3:23 a.m. UTC | #1
On 18/12/17 05:28, Eli Schwartz wrote:
> I think two ways to ask for this are enough for everyone, and we have
> never documented this anyway.
> 

Thanks,
A

Patch

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;
 	}