[issue10981] options starting with -- match substrings

2011-01-22 Thread David Caro
Changes by David Caro : -- components: +Extension Modules versions: +Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10981] options starting with -- match substrings

2011-01-22 Thread David Caro
New submission from David Caro : When parsing option like --optionname, --option will match it too example: >>> import argparse >>> parser = argparse.ArgumentParser() >>> parser = argparse.ArgumentParser() >>> parser.add_argument('--superstring') _StoreAction(option_strings=['--superstring'],