Re: [PATCH] usage_with_options: omit double new line on empty option list

2017-08-25 Thread Junio C Hamano
Stefan Beller writes: > Upon closer inspection, I have the impression that f389c808b6 > (Rework make_usage to print the usage message immediately, > 2007-10-14) introduced the extra new line without giving a rationale. I do not think that is the case. The code before that patch collected all th

Re: [PATCH] usage_with_options: omit double new line on empty option list

2017-08-25 Thread Stefan Beller
On Fri, Aug 25, 2017 at 1:27 PM, Junio C Hamano wrote: > Stefan Beller writes: > >> Currently the worktree command gives its usage, when no subcommand is >> given. However there are no general options, all options are related to >> the subcommands itself, such that: >> >> #$ git worktree >>

Re: [PATCH] usage_with_options: omit double new line on empty option list

2017-08-25 Thread Junio C Hamano
Stefan Beller writes: > Currently the worktree command gives its usage, when no subcommand is > given. However there are no general options, all options are related to > the subcommands itself, such that: > > #$ git worktree > #usage: git worktree add [] [] > # or: git worktree

[PATCH] usage_with_options: omit double new line on empty option list

2017-08-25 Thread Stefan Beller
Currently the worktree command gives its usage, when no subcommand is given. However there are no general options, all options are related to the subcommands itself, such that: #$ git worktree #usage: git worktree add [] [] # or: git worktree list [] # or: git worktree loc

Re: [PATCH] usage_with_options: omit double new line on empty option list

2017-08-25 Thread Junio C Hamano
Stefan Beller writes: > Currently the worktree command gives its usage, when no subcommand is > given. However there are no general options, all options are related to > the subcommands itself, such that: > > $ git worktree > usage: git worktree add [] [] >or: git worktree list [

Re: [PATCH] usage_with_options: omit double new line on empty option list

2017-08-25 Thread Junio C Hamano
Junio C Hamano writes: > Stefan Beller writes: > >> Currently the worktree command gives its usage, when no subcommand is >> given. However there are no general options, all options are related to >> the subcommands itself, such that: >> >> $ git worktree >> usage: git worktree add [] [

Re: [PATCH] usage_with_options: omit double new line on empty option list

2017-08-25 Thread Stefan Beller
On Fri, Aug 25, 2017 at 10:18 AM, Junio C Hamano wrote: > Stefan Beller writes: > >> Currently the worktree command gives its usage, when no subcommand is >> given. However there are no general options, all options are related to >> the subcommands itself, such that: >> >> $ git worktree >>

Re: [PATCH] usage_with_options: omit double new line on empty option list

2017-08-25 Thread Junio C Hamano
Stefan Beller writes: > Currently the worktree command gives its usage, when no subcommand is > given. However there are no general options, all options are related to > the subcommands itself, such that: > > $ git worktree > usage: git worktree add [] [] >or: git worktree list [

[PATCH] usage_with_options: omit double new line on empty option list

2017-08-25 Thread Stefan Beller
Currently the worktree command gives its usage, when no subcommand is given. However there are no general options, all options are related to the subcommands itself, such that: $ git worktree usage: git worktree add [] [] or: git worktree list [] or: git worktree lock []