summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2023-08-01 15:59:53 +0200
committerHendrik Jäger <gitcommit@henk.geekmail.org>2023-08-01 15:59:53 +0200
commita704f9961e32135e6d9b6b7dcc432adbec9d9170 (patch)
treede4b9a1af6b8ab658c2d90f969efa689674e4a36
parentb29578cfb78db8b0db20f2baa580f8a80edd243c (diff)
feat: greet given argument
-rwxr-xr-xsrc/hello/hello.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hello/hello.py b/src/hello/hello.py
index ee18b25..debf6e1 100755
--- a/src/hello/hello.py
+++ b/src/hello/hello.py
@@ -1,3 +1,7 @@
#!env python3
-print('Hello World')
+import sys
+
+who_to_greet = sys.argv[1]
+
+print('Hello', who_to_greet)