[cwctl] set min/max args for reset admin password command. Closes #1832986
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Wed, 20 Jul 2011 12:31:03 +0200
changeset 7669 b96c41c6de4d
parent 7668 b2fa3d89ed89
child 7671 d911a73ac8c5
[cwctl] set min/max args for reset admin password command. Closes #1832986
server/serverctl.py
--- a/server/serverctl.py	Mon Jul 18 17:51:55 2011 +0200
+++ b/server/serverctl.py	Wed Jul 20 12:31:03 2011 +0200
@@ -567,6 +567,7 @@
     """
     name = 'reset-admin-pwd'
     arguments = '<instance>'
+    min_args = max_args = 1
     options = (
         ('password',
          {'short': 'p', 'type' : 'string', 'metavar' : '<new-password>',