Re: [PATCH] git-stash: Display help message if git-stash is run with wrong sub-commands
- From
Wayne Davison <wayne@opencoder.net>
- Date
- Dec 4, 2007, 15:28 UTC
- Message-ID
- <20071204152827.GB24201@blorf.net>
- In-Reply-To
- <Pine.LNX.4.64.0712031023480.27959@racer.site>
On Mon, Dec 03, 2007 at 10:25:17AM +0000, Johannes Schindelin wrote:
> But those are not really options, are they? They are commands, which > exclude each other.
Option syntax is often used to represent exclusive commands, especially when those commands need to be distinguished from free-form arg words. The "git checkout" command is another example of this in git, and there are plenty of non-git examples of such a use of option syntax around. Such a syntax makes it easier to have a default action while still taking a free-form arg. I personally think that using option syntax for its behavior choices would be preferable with git stash.
..wayne..