diff --git a/implement-cowsay/cow.py b/implement-cowsay/cow.py new file mode 100644 index 00000000..7bce865c --- /dev/null +++ b/implement-cowsay/cow.py @@ -0,0 +1,16 @@ +import cowsay +import argparse + + + +parser = argparse.ArgumentParser(prog="cow.py", description="Make animals say things") +parser.add_argument("--animal", choices=cowsay.char_names, help="The animal is saying somethings", default="cow") +parser.add_argument("message", nargs="+", help="The message to say") + +args = parser.parse_args() + +char_name = args.animal +message = " ".join(args.message) + + +print(cowsay.get_output_string(args.animal, message)) \ No newline at end of file diff --git a/implement-cowsay/requirements.txt b/implement-cowsay/requirements.txt new file mode 100644 index 00000000..c6b9ffd0 --- /dev/null +++ b/implement-cowsay/requirements.txt @@ -0,0 +1 @@ +cowsay