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 telmich
Recipients bethard, r.david.murray, telmich
Date 2012-10-24.13:44:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351086260.48.0.789018320587.issue16308@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks a lot - let me know when I can help more.

After re-reading the documentation, I think the behaviour for subparsers is not specified: It is not specified, whether a subparser is required to be present or not.

Attached stripped down version of the cdist code to a bare minimum (subparse.py) which shows the problem more clear:

% python3 -V              
Python 3.2.3
% python3 ~/subparse.py   
usage: subparse.py [-h] [-V] {banner} ...
subparse.py: error: too few arguments


versus

[15:44] brief:~% python3 -V
Python 3.3.0
[15:46] brief:~% python3 subparse.py  
Traceback (most recent call last):
  File "subparse.py", line 31, in <module>
    commandline()
  File "subparse.py", line 25, in commandline
    args.func(args)
AttributeError: 'Namespace' object has no attribute 'func'
History
Date User Action Args
2012-10-24 13:44:20telmichsetrecipients: + telmich, bethard, r.david.murray
2012-10-24 13:44:20telmichsetmessageid: <1351086260.48.0.789018320587.issue16308@psf.upfronthosting.co.za>
2012-10-24 13:44:20telmichlinkissue16308 messages
2012-10-24 13:44:20telmichcreate