@command(name='_completion', hide=True)
def completion(type=('t', 'zsh', 'Completion type (bash or zsh)')):

    prog_name = os.path.split(sys.argv[0])[1]
    print COMPLETIONS[type] % prog_name
Outputs completion script for bash or zsh.
dataset/ETHPy150Open kennethreitz-archive/argue/argue/core.py/completion