MCPcopy Index your code
hub / github.com/kyclark/tiny_python_projects / get_args

Function get_args

14_rhymer/solution1_regex.py:10–19  ·  view source on GitHub ↗

get command-line arguments

()

Source from the content-addressed store, hash-verified

8
9# --------------------------------------------------
10def get_args():
11 """get command-line arguments"""
12
13 parser = argparse.ArgumentParser(
14 description='Make rhyming "words"',
15 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
16
17 parser.add_argument('word', metavar='word', help='A word to rhyme')
18
19 return parser.parse_args()
20
21
22# --------------------------------------------------

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected