cli: Disable abbreviation matching for options
authorMichael Hanselmann <hansmi@google.com>
Wed, 18 Jan 2012 18:06:18 +0000 (19:06 +0100)
committerMichael Hanselmann <hansmi@google.com>
Wed, 18 Jan 2012 18:42:54 +0000 (19:42 +0100)
commit232aab3f4f602a19f1226e85c3a3ecb245d60af4
treed46a725a33df952602e891dc17a6a97a4d63552f
parentc52d91e63e368f065b7181e9145554cdd8b9fbf1
cli: Disable abbreviation matching for options

Python's “optparse” module does option name prefix matching by default.
Since this can lead to confusing behaviour, e.g. by specifying “--force”
for a command which only has a “--force-multi” option, this patch
disables the prefix matching.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/cli.py