Message184180
We need to be careful about when or where _negative_number_match is changed.
"
We basically do:
parser = argparse.ArgumentParser(...)
parser._negative_number_matcher = re.compile(r'^-.+$')
"
This changes the value for the parser itself, but not for the groups (_optionals, _positionals) or any subparsers. The code takes special care to make sure that the related property: _has_negative_number_optionals is properly shared among all these ActionContainers. |
|
Date |
User |
Action |
Args |
2013-03-14 19:38:46 | paul.j3 | set | recipients:
+ paul.j3, amcnabb, bethard, eric.smith, eric.araujo, r.david.murray, gfxmonk, andersk, abacabadabacaba, gdb, nelhage, drm, davidben, skilletaudio, Christophe.Guillon, danielsh |
2013-03-14 19:38:46 | paul.j3 | set | messageid: <1363289926.25.0.331612729842.issue9334@psf.upfronthosting.co.za> |
2013-03-14 19:38:46 | paul.j3 | link | issue9334 messages |
2013-03-14 19:38:46 | paul.j3 | create | |
|