#!/bin/env python3 import click @click.command() @click.argument('name', nargs=1) @click.option('--cname', nargs=1, default='marvin') def hello(name, cname): print("Hello {name}, my name is {cname}".format(name=name, cname=cname)) if __name__ == '__main__': hello()