sample_python_click.py 215 B

123456789101112
  1. import click
  2. @click.command()
  3. @click.argument("foo")
  4. @click.option("--bar", is_flag=True, help="help for bar")
  5. def main(foo, bar):
  6. click.echo("{}, {}".format(foo, bar))
  7. if __name__ == '__main__':
  8. main()