argh/decorators.py
def named(new_name):
    """
    Sets given string as command name instead of the function name.
    The string is used verbatim without further processing.

    Usage::

        @named('load')
        def do_load_some_stuff_and_keep_the_original_function_name(args):
            ...

    The resulting command will be available only as ``load``.  To add aliases
    without renaming the command, check :func:`aliases`.

    .. versionadded:: 0.19
    """
    def wrapper(func):
        setattr(func, ATTR_NAME, new_name)
        return func
    return wrapper
def named(new_name):
    def wrapper(func):
        setattr(func, ATTR_NAME, new_name)
        return func
    return wrapper
def named ( new_name ) : def wrapper ( func ) : setattr ( func , ATTR_NAME , new_name ) return func return wrapper
Sets given string as command name instead of the function name.
    The string is used verbatim without further processing.

    Usage::

        @named('load')
        def do_load_some_stuff_and_keep_the_original_function_name(args):
            ...

    The resulting command will be available only as ``load``.  To add aliases
    without renaming the command, check :func:`aliases`.

    .. versionadded:: 0.19
Sets given string as command name instead of the function name . The string is used verbatim without further processing .