[PATCH] shortlog: remove --help option parsing

Subsystems: the rest

DORMANTno replies

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

[PATCH] shortlog: remove --help option parsing

From: Jonas Fonseca <hidden>
Date: 2016-06-15 22:43:37

This option is handled globally.

Signed-off-by: Jonas Fonseca <redacted>
---
 builtin-shortlog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-shortlog.c b/builtin-shortlog.c
index 3fe7546..518f27f 100644
--- a/builtin-shortlog.c
+++ b/builtin-shortlog.c
@@ -264,7 +264,7 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
 			wrap_lines = 1;
 			parse_wrap_args(argv[1], &in1, &in2, &wrap);
 		}
-		else if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help"))
+		else if (!strcmp(argv[1], "-h"))
 			usage(shortlog_usage);
 		else
 			break;
-- 
1.5.3.2.1029.gc1d178


-- 
Jonas Fonseca

Re: [PATCH] shortlog: remove --help option parsing

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:43:37

Hi,

On Mon, 1 Oct 2007, Jonas Fonseca wrote:
-		else if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help"))
+		else if (!strcmp(argv[1], "-h"))
I see that this is my fault.

Thanks,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help