From: Joey Hess Date: Thu, 24 Jan 2008 20:47:11 GMT Subject: Re: [PATCH] Check for -amend as a common wrong usage of --amend. Message-ID: <20080124204711.GC17765@kodama.kitenet.net> In-Reply-To: <4798DE6A.1050201@obry.net> Pascal Obry wrote: > Johannes Schindelin a écrit : >> That is ugly. In a source file which is by no means specific to >> git-commit, you cannot possibly mean to check for "amend". > > Agreed :( I'll try to come with something better. Some option parsers avoid this sort of ambiguity by not allowing short options that take a string to be bundled in the same word with other short options. So, for example, git-commit -am would not be allowed, while git-commit -a -m and perhaps git-commit -am would be allowed. There could still be problems if there were a --mend option that could be typoed as -mend. I don't know enough about compatability to say if this would work for git. -- see shy jo