Message173684
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' |
|
Date |
User |
Action |
Args |
2012-10-24 13:44:20 | telmich | set | recipients:
+ telmich, bethard, r.david.murray |
2012-10-24 13:44:20 | telmich | set | messageid: <1351086260.48.0.789018320587.issue16308@psf.upfronthosting.co.za> |
2012-10-24 13:44:20 | telmich | link | issue16308 messages |
2012-10-24 13:44:20 | telmich | create | |
|