| Conditions | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | """ |
||
| 25 | 1 | def _create_arg_parser() -> ArgumentParser: |
|
| 26 | """Prepare the command line arguments parser.""" |
||
| 27 | 1 | parser = ArgumentParser() |
|
| 28 | |||
| 29 | 1 | parser.add_argument( |
|
| 30 | '--version', |
||
| 31 | action='version', |
||
| 32 | version=f'syslog2IRC {VERSION}', |
||
| 33 | ) |
||
| 34 | |||
| 35 | 1 | parser.add_argument( |
|
| 36 | 'config_filename', |
||
| 37 | type=Path, |
||
| 38 | ) |
||
| 39 | |||
| 40 | return parser |
||
| 41 |