Mercurial > hg > configuration
changeset 142:efd2d3330296
wip
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 01 Dec 2014 18:08:58 -0800 |
parents | c6aea14a3e2b |
children | 2825b0fdf80e |
files | example/argparse_undefined.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/example/argparse_undefined.py Mon Dec 01 18:05:50 2014 -0800 +++ b/example/argparse_undefined.py Mon Dec 01 18:08:58 2014 -0800 @@ -14,6 +14,8 @@ class UndefinedArgumentParser(argparse.ArgumentParser): + def __init__(self, *args, **kwargs): + def add_argument(self, *args, **kwargs): kwargs.setdefault('default', Undefined) return argparse.ArgumentParser.add_argument