import click click echo 28 29 format python 3

Solutions on MaxInterview for import click click echo 28 29 format python 3 by the best coders in the world

showing results for - "import click click echo 28 29 format python 3"
Olivia
20 May 2018
1import click
2
3@click.command()
4@click.option('--verbose', is_flag=True, help="Will print verbose messages.")
5@click.option('--name', '-n', multiple=True, default='', help='Who are you?')
6@click.argument('country')
7def cli(verbose,name, country):
8    """This is an example script to learn Click."""
9    if verbose:
10        click.echo("We are in the verbose mode.")
11    click.echo("Hello {0}".format(country))
12    for n in name:
13        click.echo('Bye {0}'.format(n))
14