mike bayer added the comment: um, this seems like a regression/bug? I now have users complaining that my apps are broken because of this change as of Python 3.3. My application is supposed to return the "help" screen when no command is given. Now I get a None error because argparse is not trapping this condition:
from argparse import ArgumentParser parser = ArgumentParser(prog='test') subparsers = parser.add_subparsers() subparser = subparsers.add_parser("foo", help="run foo") parser.parse_args() $ python3.2 test.py usage: test [-h] {foo} ... test: error: too few arguments $ python3.3 test.py $ This seems very much like a major feature has been yanked away from argparse, now I have to check for this condition explicitly. am I on the right issue here or do I need to open something new ? ---------- nosy: +zzzeek _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9253> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com