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

2 messages from 2007-10-01 to 2007-10-01. Participants: Jonas Fonseca, Johannes Schindelin.
Thread: https://gitlist.dev/t/10099

## Jonas Fonseca, 2007-10-01 10:20

Subject: [PATCH] shortlog: remove --help option parsing
Message-ID: <20071001102020.GA8315@diku.dk>
URL: https://gitlist.dev/e/20071001102020.GA8315%40diku.dk

```
This option is handled globally.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
---
 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

```

## Johannes Schindelin, 2007-10-01 11:42

Subject: Re: [PATCH] shortlog: remove --help option parsing
Message-ID: <Pine.LNX.4.64.0710011241430.28395@racer.site>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0710011241430.28395%40racer.site
In-Reply-To: <20071001102020.GA8315@diku.dk>

```
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

```
