git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Scott Schmit <i.grok@comcast.net>
To: Alex Henrie <alexhenrie24@gmail.com>
Cc: git@vger.kernel.org, gitster@pobox.com, pclouds@gmail.com,
	Matthieu.Moy@imag.fr, krh@redhat.com, vmiklos@frugalware.org,
	madcoder@debian.org, barra_cuda@katamail.com, dpotapov@gmail.com,
	git@adamspiers.org, sunshine@sunshineco.com,
	mhagger@alum.mit.edu, jrnieder@gmail.com, barkalow@iabervon.org,
	stefanbeller@gmail.com, shawn.bohrer@gmail.com,
	felipe.contreras@gmail.com, rhansen@bbn.com, pasky@ucw.cz,
	s-beyer@gmx.net, c.shoemaker@cox.net, grnch@gmx.net,
	jbowes@dangerouslyinc.com, l.s.r@web.de, philipoakley@iee.org,
	michal.kiedrowicz@gmail.com, cmn@elego.de, artagnon@gmail.com,
	rctay89@gmail.com, stefan.naewe@gmail.com, pbonzini@redhat.com,
	aspotashev@gmail.com, johan@herland.net, luksan@gmail.com,
	bebarino@gmail.com, Johannes.Schindelin@gmx.de, kevin@bracey.fi,
	jasampler@gmail.com, brad.king@kitware.com,
	git@drmicha.warpmail.net, peff@peff.net, chriscool@tuxfamily.org,
	a
Subject: Re: [PATCH] standardize usage info string format
Date: Tue, 13 Jan 2015 00:29:01 -0500	[thread overview]
Message-ID: <20150113052901.GA10126@odin.ulthar.us> (raw)
In-Reply-To: <1420698501-15393-1-git-send-email-alexhenrie24@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1670 bytes --]

On Wed, Jan 07, 2015 at 11:28:21PM -0700, Alex Henrie wrote:
> This patch puts the usage info strings that were not already in docopt-
> like format into docopt-like format, which will be a litle easier for
> end users and a lot easier for translators. Changes include:
> 
> - Placing angle brackets around fill-in-the-blank parameters
> - Putting dashes in multiword parameter names
> - Adding spaces to [-f|--foobar] to make [-f | --foobar]
> - Replacing <foobar>* with [<foobar>...]
> 
> Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
> ---

> diff --git a/builtin/diff-files.c b/builtin/diff-files.c
> index 9200069..1abeba6 100644
> --- a/builtin/diff-files.c
> +++ b/builtin/diff-files.c
> @@ -11,7 +11,7 @@
>  #include "submodule.h"
>  
>  static const char diff_files_usage[] =
> -"git diff-files [-q] [-0/-1/2/3 |-c|--cc] [<common diff options>] [<path>...]"
> +"git diff-files [-q] [-0/-1/2/3 | -c | --cc] [<common-diff-options>] [<path>...]"
                         ^^^^^^^^^
This deserves cleanup too (the man page shows it as "[-0|-1|-2|-3|-c|--cc]").

...which makes me think the man pages need to be modified to match.  

Also, it looks like items 1 & 4 are already codified in
CodingGuidelines, but items 2 & 3 are new.  If we care to make the
changes in 2 & 3, we should document the new conventions there.

Bike-shedding, I'm sure: I find "[-0|-1|-2|-3|-c|--cc]" more
readable/logical than "[-0 | -1 | -2 | -3 | -c | --cc]" (which I admit
seems counter-intuitive), but I wouldn't be surprised if opinions on
that are about as split as the existing usage lines are :-).

Hope this helps.

-- 
Scott Schmit

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3891 bytes --]

      parent reply	other threads:[~2015-01-13  5:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-08  6:28 [PATCH] standardize usage info string format Alex Henrie
2015-01-08 10:00 ` Johannes Schindelin
2015-01-08 13:21 ` Matthieu Moy
2015-01-13  5:29 ` Scott Schmit [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150113052901.GA10126@odin.ulthar.us \
    --to=i.grok@comcast.net \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=Matthieu.Moy@imag.fr \
    --cc=alexhenrie24@gmail.com \
    --cc=artagnon@gmail.com \
    --cc=aspotashev@gmail.com \
    --cc=barkalow@iabervon.org \
    --cc=barra_cuda@katamail.com \
    --cc=bebarino@gmail.com \
    --cc=brad.king@kitware.com \
    --cc=c.shoemaker@cox.net \
    --cc=chriscool@tuxfamily.org \
    --cc=cmn@elego.de \
    --cc=dpotapov@gmail.com \
    --cc=felipe.contreras@gmail.com \
    --cc=git@adamspiers.org \
    --cc=git@drmicha.warpmail.net \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=grnch@gmx.net \
    --cc=jasampler@gmail.com \
    --cc=jbowes@dangerouslyinc.com \
    --cc=johan@herland.net \
    --cc=jrnieder@gmail.com \
    --cc=kevin@bracey.fi \
    --cc=krh@redhat.com \
    --cc=l.s.r@web.de \
    --cc=luksan@gmail.com \
    --cc=madcoder@debian.org \
    --cc=mhagger@alum.mit.edu \
    --cc=michal.kiedrowicz@gmail.com \
    --cc=pasky@ucw.cz \
    --cc=pbonzini@redhat.com \
    --cc=pclouds@gmail.com \
    --cc=peff@peff.net \
    --cc=philipoakley@iee.org \
    --cc=rctay89@gmail.com \
    --cc=rhansen@bbn.com \
    --cc=s-beyer@gmx.net \
    --cc=shawn.bohrer@gmail.com \
    --cc=stefan.naewe@gmail.com \
    --cc=stefanbeller@gmail.com \
    --cc=sunshine@sunshineco.com \
    --cc=vmiklos@frugalware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).