This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.j3
Recipients BreamoreBoy, Michael.Edwards, bethard, daniel.ugra, eli.bendersky, eric.smith, jens.jaehrig, jpaugh, paul.j3, r.david.murray, tshepang
Date 2013-11-28.17:15:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385658948.15.0.910049002143.issue14910@psf.upfronthosting.co.za>
In-reply-to
Content
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').
History
Date User Action Args
2013-11-28 17:15:48paul.j3setrecipients: + paul.j3, bethard, eric.smith, r.david.murray, eli.bendersky, daniel.ugra, BreamoreBoy, tshepang, jens.jaehrig, jpaugh, Michael.Edwards
2013-11-28 17:15:48paul.j3setmessageid: <1385658948.15.0.910049002143.issue14910@psf.upfronthosting.co.za>
2013-11-28 17:15:48paul.j3linkissue14910 messages
2013-11-28 17:15:47paul.j3create