'Encodes the reason for certificate revocation.'

def __call__(self, parser, namespace, reason, option_string=None):

    code = constants.REVOCATION_REASONS[reason.lower()]
    setattr(namespace, self.dest, code)
