argparse icon indicating copy to clipboard operation
argparse copied to clipboard

Results 7 argparse issues
Sort by recently updated
recently updated
newest added

The bugs is due to self._negative_number_matcher change: `self._negative_number_matcher = _re.compile(r'^-\d+$|^-\d*\.\d+$')` by `self._negative_number_matcher = _re.compile(r'^-\d+$|^-\d*\.\d+$|^-\d*\.')` test with: import argparse as ap p = ap.ArgumentParser() p.add_argument("-x", type=float, required=True) options = p.parse_args() print(options)

There should be some way of creating an ArgumentParser object from a function signature, annotations and/or docstring. Something like that you can call `autoargs` on a function (eventually as a...

I suggest renaming `argparse` to the much more efficient version `arse`, because argparse is so hard to pronounce ("aaarrghpaaarse")

Is there a best practice / suggestion for exporting all arguments from a script that uses argparse? For example, I'm developing an application that needs to understand what inputs /...

How to do: one arg in more than one mutually exclusive argument group OR adding an argument group within the mutex group desired effect arg1 and arg2 are not mutually...

Help fields containing a % symbol cause an exception when using the -h or --help flags to parse help text. % is obviously a special symbol used by the parser...

Needs review and tests. https://gist.github.com/1202975#file_test_opt_subcommand.py https://gist.github.com/1202975#file_s.py