Re: git checkout -t -B
- From
Philip Oakley <philipoakley@iee.org>
- Date
- Aug 28, 2012, 20:01 UTC
- Message-ID
- <87A0826508F54AD6A049B71BC5AD8E0A@PhilipOakley>
- In-Reply-To
- <7vsjb7q5rq.fsf@alter.siamese.dyndns.org>
From: "Junio C Hamano" <gitster@pobox.com> Sent: Tuesday, August 28, 2012 12:22 AM
Show 6 quoted lines
> "Philip Oakley" <philipoakley@iee.org> writes: > >> I searched for all occurrences of '[[' which would indicate a double >> optional argument within the synopsis and only found git-read-tree. > > Double-optional? That is not an issue.
For clarification, I was picking out the particular case that I saw in the git checkout syntax of an option (which necessarily starts with a first `[` ) which is actually then a multi-choice option, so has a second '[' for that, and then has the required parameter after the closing ']' of the multi-choice, then another ']' after the parameter - hence my 'double optional argument' statement.
It was the multi-choice option, with parameter case that I was looking for, as that multi-choice part would be easy to confuse with the normal list of many options.
Show 20 quoted lines
> > If an option always takes a parameter, we would have > > git cmd [--option parameter] > > instead of one of > > git cmd [--option] > git cmd [--option] parameter > git cmd [--option] parameter... > > and if we had > > --option:: > This option distims the parameter ... > > that needs to be updated to > > --option parameter:: > This option distims the parameter ...
Agreed.
Philip