samba-tool: Fixed bugs to determine min and max # of allowed arguments
authorGiampaolo Lauria <lauria2@yahoo.com>
Mon, 18 Jul 2011 20:48:03 +0000 (16:48 -0400)
committerAndrew Tridgell <tridge@samba.org>
Thu, 21 Jul 2011 01:44:31 +0000 (11:44 +1000)
commit452e50919efcd5d92df2bfad48ef106cd75ebad9
treeef185a53a329cfc1f6e91c992c78d8124d554691
parentf03a059814ab757a112ea4504ffe8b933a905e3d
samba-tool: Fixed bugs to determine min and max # of allowed arguments

Fixed the bugs in the code to determine both the min and the max # of allowed arguments
Changed the argument suffix convention from "*" to "+" to represent one or more arguments as:
 1. It follows the Regular expression convention ("*" means 0 or more)
 2. It is what was missing in terms of functionality
NB Currently, no command is using the "*/+", but it is a good thing to have to help out the validation of the args if/when in the future
we have such need

Signed-off-by: Andrew Tridgell <tridge@samba.org>
source4/scripting/python/samba/netcmd/__init__.py