-
-
Save aabiddanda/d32a75e8f14b0e471ceb6ff3c625ef1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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