From: Jakub Narebski Date: Sat, 02 Feb 2008 00:38:08 GMT Subject: Re: [PATCH] Documentation/git-stash.txt: Adjust SYNOPSIS command syntaxes Message-ID: In-Reply-To: Jari Aalto writes: > * Fri 2008-02-01 Jakub Narebski > * Message-Id: m33asc94xn.fsf@localhost.localdomain >> Jari Aalto writes: >> >>> * Fri 2008-02-01 Jakub Narebski >>> * Message-Id: m37iho9b70.fsf@localhost.localdomain >>>> >>>> >>>> 'git-stash' (list | show [] | apply [] | clear) >>>> 'git-stash' [save [...]] >>>> >>>> Angle brackets if I understand correctly are meant to denote part >>>> which you have to enter, the user supplied info (the reast ou have to >>>> enter literally). >>> >>> Nowhere I have seen "(" parenheses to mean "required". >> >> The "(" parentheses does not mean "required". They do mean "group", >> just like for regular expressions. So "A (B | C)" means "A B" or >> "A C". > > In regexp language yes, but in describing the command syntaxes, I do not > have come accross this. Would you have descriptive examples? It seems that I was mistaken about that. Junio suggestion of following others example and using "{}" curly brackets for grouping alternate choices is IMHO a good solution. ...or perhaps not. For example synopsis for git-branch uses this syntax. >>> The angle brackets are commonly used to tell that the part is to be >>> required: >>> >>> command