@app.command
def keyword_options(three='three', four=False):
    # Keyword arguments in your function def are parsed as --options on the
    # command line. For example, this command will be called thusly:
    # complex_example.py keyword_options --three=33333 --four
    # Note: keywords with boolean defaults will be toggle options
    print 'Options: three=%s, four=%s' % (three, four)
This command takes some keyword options.
dataset/ETHPy150Open jmohr/compago/examples/complex_example.py/keyword_options