From: Junio C Hamano Date: Sat, 16 Aug 2008 09:49:06 GMT Subject: Re: [PATCH] git-stash: improve synopsis in help and manual page Message-ID: <7vljyxe1d9.fsf@gitster.siamese.dyndns.org> In-Reply-To: <1218857251-2971-1-git-send-email-s-beyer@gmx.net> Stephan Beyer writes: > btw, should the "create" command be used directly at all? > Then a line for this should perhaps be added. It's pretty much for Porcelain writer's consumption, so I do not think it is worth adding it to command line help, even though it would be nice to describe it in the documentation. > +dashless=$(basename "$0" | sed -e 's/-/ /') > +USAGE="list [] > + or: $dashless (show | drop | pop ) [] > + or: $dashless [--index] apply [] > + or: $dashless branch [] > + or: $dashless [--keep-index] [save []] > + or: $dashless clear" These --index and --keep-index are subcommand options and come after them (i.e. apply/save).