Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import click
- @click.command()
- @click.argument('name')
- @click.option('-v', is_flag=True, help="Verbose output")
- def main(name, v):
- if v:
- print "Printing output statement"
- print("Hello there " + name + "!")
- if __name__ == "__main__":
- main()
Add Comment
Please, Sign In to add comment