From c916e8b9bbb19eeb0a7aa852969c24be207a687c Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Thu, 18 Jun 2020 19:42:39 +0200
Subject: [PATCH] Update hello_world.py

---
 hello_world.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/hello_world.py b/hello_world.py
index d72379e..c6935c3 100644
--- a/hello_world.py
+++ b/hello_world.py
@@ -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__':
-- 
GitLab