Improve revocation_reason argument

This commit is contained in:
Rob Crittenden 2009-05-08 14:10:53 -04:00
parent 1c31b5bc08
commit 014f3ff1c6

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):