paul j3 added the comment:

For a programmer who needs to turn off this abbreviation matching now, a simple 
solution is to subclass ArgumentParser:

    class MyParser(ArgumentParser):
        def _get_option_tuples(self, option_string):
            return []

This could be the place to implement more specialized matching (e.g. do not 
match on strings like '--sync').

----------
nosy: +paul.j3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14910>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to