Click.py 301 Bytes
Newer Older
Corentin Hermet's avatar
Corentin Hermet committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import click

@click.command()
@click.option('--count', default=1, help='number of greetings')
@click.argument('name')
@click.argument('lol')
def hello(count, name, lol):
    count=3
    for x in range(count):
        click.echo('Hello %s %s!' %(name , lol) )

if __name__ == '__main__':
    hello()