From: Thiago Farina Date: Thu, 17 Sep 2009 16:16:25 GMT Subject: Re: [PATCH] Update the usage bundle string. Message-ID: In-Reply-To: On Thu, Sep 17, 2009 at 1:04 PM, Matthieu Moy wrote: > Johannes Sixt writes: > >> Thiago Farina schrieb: >> >>> +static const char builtin_bundle_usage[] = "\ >>> +  git bundle create \n\ >>> +  git bundle verify \n\ >>> +  git bundle list-heads [refname...]\n\ >>> +  git bundle unbundle [refname...]"; >> >> You indent the usage text. Do other commands do that, too? If you resend, >> it may be worth using this style: >> >> static const char builtin_bundle_usage[] = >>       "git bundle create \n" >>       "git bundle verify \n" > > I like aligned usage strings, like: > > $ git stash -h > Usage: git stash list [] >   or: git stash show [] >   or: git stash drop [-q|--quiet] [] >   or: git stash ( pop | apply ) [--index] [-q|--quiet] [] >   or: git stash branch [] >   or: git stash [save [-k|--keep-index] [-q|--quiet] []] >   or: git stash clear > > or > > $ git branch -h |& head -n 4 > usage: git branch [options] [-r | -a] [--merged | --no-merged] >   or: git branch [options] [-l] [-f] [] >   or: git branch [options] [-r] (-d | -D) >   or: git branch [options] (-m | -M) [] > I like and prefer this style too. I can use it in my patch, like: $ git bundle -h usage: git bundle create or: git bundle verify or: git bundle list-heads [refname...] or: git bundle unbundle [refname...] instead of: usage: git bundle create git bundle verify git bundle list-heads [refname...] git bundle unbundle [refname...] > but Git isn't very consistant here: > > $ git bisect -h |& head  -n 6 > Usage: git bisect [help|start|bad|good|skip|next|reset|visualize|replay|log|run] > > git bisect help >        print this long help message. > git bisect start [ [...]] [--] [...] >        reset bisect state and start bisection. > > -- > Matthieu Moy > http://www-verimag.imag.fr/~moy/ >