MCPcopy Index your code
hub / github.com/ndleah/python-mini-project / cli

Function cli

Cat_command/cat.py:42–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40 print(lines, end='')
41
42def cli() -> argparse.Namespace:
43 parser = argparse.ArgumentParser(
44 prog='cat',
45 description='cat command implementation in python',
46 epilog='Example: your/path/file.txt'
47 )
48
49 parser.add_argument(
50 'source',
51 type=Path,
52 help='Source file'
53 )
54
55 return parser.parse_args()
56
57def main():
58

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected