()
| 20 | |
| 21 | |
| 22 | def parse_args() -> argparse.Namespace: |
| 23 | parser = argparse.ArgumentParser( |
| 24 | prog="lint", |
| 25 | formatter_class=argparse.RawDescriptionHelpFormatter, |
| 26 | description="Lint the code", |
| 27 | ) |
| 28 | parser.add_argument( |
| 29 | "--print-duration", action=argparse.BooleanOptionalAction, default=True |
| 30 | ) |
| 31 | parser.add_argument("--verbose", action="store_true") |
| 32 | parser.add_argument("--offline", action="store_true") |
| 33 | return parser.parse_args() |
| 34 | |
| 35 | |
| 36 | def main() -> int: |