* [PATCH] git.c: make usage match manual page
@ 2013-03-11 19:44 Kevin Bracey
2013-03-11 19:58 ` Junio C Hamano
2013-03-11 20:44 ` [PATCH] git.c: rearrange git synopsis to fit in 80 columns Kevin Bracey
0 siblings, 2 replies; 4+ messages in thread
From: Kevin Bracey @ 2013-03-11 19:44 UTC (permalink / raw)
To: git; +Cc: Kevin Bracey
Re-ordered option list in command-line usage to match the manual page.
Also makes it less than 80-characters wide.
Signed-off-by: Kevin Bracey <kevin@bracey.fi>
---
git.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/git.c b/git.c
index d33f9b3..2a98624 100644
--- a/git.c
+++ b/git.c
@@ -6,10 +6,10 @@
#include "run-command.h"
const char git_usage_string[] =
- "git [--version] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\n"
+ "git [--version] [--help] [-c name=value]\n"
+ " [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\n"
" [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]\n"
" [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]\n"
- " [-c name=value] [--help]\n"
" <command> [<args>]";
const char git_more_info_string[] =
--
1.8.2.rc3.7.g1100d09.dirty
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] git.c: make usage match manual page
2013-03-11 19:44 [PATCH] git.c: make usage match manual page Kevin Bracey
@ 2013-03-11 19:58 ` Junio C Hamano
2013-03-11 20:43 ` Kevin Bracey
2013-03-11 20:44 ` [PATCH] git.c: rearrange git synopsis to fit in 80 columns Kevin Bracey
1 sibling, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2013-03-11 19:58 UTC (permalink / raw)
To: Kevin Bracey; +Cc: git
Kevin Bracey <kevin@bracey.fi> writes:
> Re-ordered option list in command-line usage to match the manual page.
> Also makes it less than 80-characters wide.
Thanks (s/Re-ordered/reorder/ and s/makes/make/, though).
Is git.c the only one whose "-h" output does not match the manual
synopsis?
>
> Signed-off-by: Kevin Bracey <kevin@bracey.fi>
> ---
> git.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/git.c b/git.c
> index d33f9b3..2a98624 100644
> --- a/git.c
> +++ b/git.c
> @@ -6,10 +6,10 @@
> #include "run-command.h"
>
> const char git_usage_string[] =
> - "git [--version] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\n"
> + "git [--version] [--help] [-c name=value]\n"
> + " [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\n"
> " [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]\n"
> " [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]\n"
> - " [-c name=value] [--help]\n"
> " <command> [<args>]";
>
> const char git_more_info_string[] =
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] git.c: make usage match manual page
2013-03-11 19:58 ` Junio C Hamano
@ 2013-03-11 20:43 ` Kevin Bracey
0 siblings, 0 replies; 4+ messages in thread
From: Kevin Bracey @ 2013-03-11 20:43 UTC (permalink / raw)
To: git; +Cc: Junio C Hamano
On 11/03/2013 21:58, Junio C Hamano wrote:
> Kevin Bracey <kevin@bracey.fi> writes:
>
>> Re-ordered option list in command-line usage to match the manual page.
>> Also makes it less than 80-characters wide.
> Thanks (s/Re-ordered/reorder/ and s/makes/make/, though).
Got it. But I'm going to reword it, to follow the history of the manual
change.
> Is git.c the only one whose "-h" output does not match the manual
> synopsis?
>
Generally, "-h" just puts "<options>" in the synopsis, and then prints a
line per option, so most commands don't really match the manual "show
all options on one line" style anyway. git.c is atypical. (Something
else to look at for the whole git help thing? Should "git -h" print a
option list in that style?)
But, yes, I've found a few others that are show almost the same thing as
the manual but with subtle pointless differences. "git remote", for
example. That's a larger project, I feel; the 80-column thing is key here.
Kevin
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] git.c: rearrange git synopsis to fit in 80 columns
2013-03-11 19:44 [PATCH] git.c: make usage match manual page Kevin Bracey
2013-03-11 19:58 ` Junio C Hamano
@ 2013-03-11 20:44 ` Kevin Bracey
1 sibling, 0 replies; 4+ messages in thread
From: Kevin Bracey @ 2013-03-11 20:44 UTC (permalink / raw)
To: git; +Cc: Kevin Bracey
Make the command line use the narrower synopsis layout that the man page
has used since commit 68e4b55.
Signed-off-by: Kevin Bracey <kevin@bracey.fi>
---
git.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/git.c b/git.c
index d33f9b3..2a98624 100644
--- a/git.c
+++ b/git.c
@@ -6,10 +6,10 @@
#include "run-command.h"
const char git_usage_string[] =
- "git [--version] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\n"
+ "git [--version] [--help] [-c name=value]\n"
+ " [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\n"
" [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]\n"
" [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]\n"
- " [-c name=value] [--help]\n"
" <command> [<args>]";
const char git_more_info_string[] =
--
1.8.2.rc3.7.g1100d09.dirty
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-03-11 20:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-11 19:44 [PATCH] git.c: make usage match manual page Kevin Bracey
2013-03-11 19:58 ` Junio C Hamano
2013-03-11 20:43 ` Kevin Bracey
2013-03-11 20:44 ` [PATCH] git.c: rearrange git synopsis to fit in 80 columns Kevin Bracey
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.