def switch_to(branch):

    switch_args = args.copy
    switch_args._args = [branch]

    return cmd_switch(switch_args)
Runs the cmd_switch command with given branch arg.
dataset/ETHPy150Open kennethreitz/legit/legit/cli.py/switch_to