From: Shawn O. Pearce Date: Fri, 25 Sep 2009 23:32:26 GMT Subject: how optparse can go horribly wrong Message-ID: <20090925233226.GC14660@spearce.org> *sigh*. Someone just ran into this today: $ git commit -a -ammend [work ce38944] mend 1 files changed, 2 insertions(+), 0 deletions(-) Omit one - and include an extra 'm', and instead of --amend you have -a -m mend. Which isn't exactly what you wanted. We do catch -amend with an error though: $ git commit -amend error: did you mean `--amend` (with two dashes ?) I wonder, should the -m flag on commit not allow cuddling its value against the switch when its combined in short form with other switches? -- Shawn.