dao/client/shell.py
def cli_argument(*args, **kwargs):
    """Function create a decorator that add named attributes to the function"""

    def wrap(func):
        """Decorator internal wrapper"""

        if not hasattr(func, 'cli_args'):
            func.cli_args = list()
        func.cli_args.append((args, kwargs))
        return func

    return wrap
Function create a decorator that add named attributes to the function
Function create a decorator that add named attributes to the function
Function create a decorator that add named attributes to the function
def cli_argument(*args, **kwargs):
    def wrap(func):
        if not hasattr(func, 'cli_args'):
            func.cli_args = list()
        func.cli_args.append((args, kwargs))
        return func
    return wrap
def cli_argument ( * args , ** kwargs ) : def wrap ( func ) : """Decorator internal wrapper""" if not hasattr ( func , 'cli_args' ) : func . cli_args = list ( ) func . cli_args . append ( ( args , kwargs ) ) return func return wrap
Function create a decorator that add named attributes to the function
Function create a decorator that add named attributes to the function
"""Function create a decorator that add named attributes to the function""" """Decorator internal wrapper"""