kedro/cli/utils.py
def forward_command(group, name=None, forward_help=False):
    """A command that receives the rest of the command line as 'args'."""

    def wrapit(func):
        func = click.argument("args", nargs=-1, type=click.UNPROCESSED)(func)
        func = group.command(
            name=name,
            context_settings=dict(
                ignore_unknown_options=True,
                help_option_names=[] if forward_help else ["-h", "--help"],
            ),
        )(func)
        return func

    return wrapit
A command that receives the rest of the command line as 'args'.
A command that receives the rest of the command line as 'args'.
A command that receives the rest of the command line as ' args ' .
def forward_command(group, name=None, forward_help=False):
    def wrapit(func):
        func = click.argument("args", nargs=-1, type=click.UNPROCESSED)(func)
        func = group.command(
            name=name,
            context_settings=dict(
                ignore_unknown_options=True,
                help_option_names=[] if forward_help else ["-h", "--help"],
            ),
        )(func)
        return func
    return wrapit
def forward_command ( group , name = None , forward_help = False ) : def wrapit ( func ) : func = click . argument ( "args" , nargs = - 1 , type = click . UNPROCESSED ) ( func ) func = group . command ( name = name , context_settings = dict ( ignore_unknown_options = True , help_option_names = [ ] if forward_help else [ "-h" , "--help" ] , ) , ) ( func ) return func return wrapit
A command that receives the rest of the command line as 'args'.
A command that receives the rest of the command line as ' args ' .
"""A command that receives the rest of the command line as 'args'."""
group
name
forward_help