Skip to content
Snippets Groups Projects
Commit c916e8b9 authored by David Beniamine's avatar David Beniamine
Browse files

Update hello_world.py

parent b14f5331
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,9 @@ import click
@click.command()
@click.argument('name', nargs=1)
def hello(name):
print("Hello {name}".format(name=name))
@click.option('--cname', nargs=1, default='marvin')
def hello(name, cname):
print("Hello {name}, my name is {cname}".format(name=name, cname=cname))
if __name__ == '__main__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment