Skip to content

Commit 8671d12

Browse files
argparse setup for project
1 parent 3895c1c commit 8671d12

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

implement-cowsay/cow.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,19 @@
1-
import cowsay
1+
import cowsay
2+
import argparse
3+
4+
parser = argparse.ArgumentParser(
5+
prog="cowsay",
6+
description="Make animals say things"
7+
)
8+
9+
parser.add_argument("--animal", help="The animal to be saying things.")
10+
parser.add_argument("message", nargs="+", help="The message to say.")
11+
12+
args = parser.parse_args()
13+
14+
# cowsay.cow(" ".join(sys.argv[1:]))
15+
16+
17+
animals = cowsay.char_names
18+
19+
print(animals)

0 commit comments

Comments
 (0)