Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f341808 commit ff354b4Copy full SHA for ff354b4
01_hello/hello.py
@@ -1,3 +1,9 @@
1
#!/usr/bin/env python3
2
# Purpose: Say hello
3
-print("Hello, World!")
+
4
+import argparse
5
6
+parser = argparse.ArgumentParser(description="Say hello")
7
+parser.add_argument("name", help="Name to greet")
8
+args = parser.parse_args()
9
+print("Hello, " + args.name + "!")
0 commit comments