Improve revocation_reason argument

This commit is contained in:
Rob Crittenden committed 2009-05-13 14:17:03 -04:00
1 parent 1c31b5bc08
commit 014f3ff1c6
1 file changed
+8 -1
+8 -1
View File
@@ -151,7 +151,14 @@ class cert_revoke(Command):
takes_args = ['serial_number']
# FIXME: The default is 0. Is this really an Int param?
takes_options = [Int('revocation_reason?', default=0)]
takes_options = (
Int('revocation_reason?',
doc='Reason for revoking the certificate (0-10)',
minvalue=0,
maxvalue=10,
default=0,
),
)
def execute(self, serial_number, **kw):