()
| 40 | print(lines, end='') |
| 41 | |
| 42 | def 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 | |
| 57 | def main(): |
| 58 |