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 jens.jaehrig
Recipients jens.jaehrig
Date 2012-05-25.11:02:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337943742.57.0.897347214609.issue14910@psf.upfronthosting.co.za>
In-reply-to
Content
argparse uses per default abbreviation in unambiguous cases.

I don't want abbreviation and i'd like to disable it.
But theres no option to do this.
http://docs.python.org/library/argparse.html#argument-abbreviations
Only to override the Handler like suggested here: http://stackoverflow.com/questions/10750802/python-argparse-disable-abbreviation/10751356#10751356

################
# Example      #
################

    import argparse
    parser = argparse.ArgumentParser()
    parser.add_argument('--send', action='store_true')
    parser.parse_args(['--se']) # returns Namespace(send=True)

But i want it only to be true when the full parameter is supplied. To prevent user errors.
History
Date User Action Args
2012-05-25 11:02:22jens.jaehrigsetrecipients: + jens.jaehrig
2012-05-25 11:02:22jens.jaehrigsetmessageid: <1337943742.57.0.897347214609.issue14910@psf.upfronthosting.co.za>
2012-05-25 11:02:22jens.jaehriglinkissue14910 messages
2012-05-25 11:02:21jens.jaehrigcreate