def command(method=None, **kwargs):
<EOL>def actual_decorator(method):<EOL><INDENT>method._cli_command = True<EOL>method._cli_command_attrs = kwargs<EOL>return method<EOL><DEDENT>if method and isinstance(method, types.FunctionType):<EOL><INDENT>return actual_decorator(method)<EOL><DEDENT>else:<EOL><INDENT>return actual_decorator<EOL><DEDENT>
Mark this method as a CLI command.

    This will only have any meaningful effect in methods that are members of a
    Resource subclass.