Skip to content

Instantly share code, notes, and snippets.

@aabiddanda
Last active April 28, 2018 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aabiddanda/d32a75e8f14b0e471ceb6ff3c625ef1b to your computer and use it in GitHub Desktop.
Save aabiddanda/d32a75e8f14b0e471ceb6ff3c625ef1b to your computer and use it in GitHub Desktop.
#!/usr/local/bin/python3
'''
Template python script with arguments
'''
import click
@click.command()
@click.option('--count', default=1, help='Number of greetings.')
@click.option('--name', prompt='Your name',
help='The person to greet.')
def main(count, name):
"""Simple program that greets NAME for a total of COUNT times."""
for x in range(count):
click.echo('Hello %s!' % name)
if __name__ =='__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment