Skip to content

Commit

Permalink
Let argparse source the CLI arguments
Browse files Browse the repository at this point in the history
There's no point in passing in the defaults.

Co-authored-by: Jeppe Fihl-Pearson <[email protected]>
  • Loading branch information
meshy and Tenzer committed Jan 31, 2023
1 parent ea09fac commit eeaccc4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mypy_json_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ def main() -> None:

parse_parser.set_defaults(func=_parse_command)

args = sys.argv[1:]
parsed = parser.parse_args(args)
parsed = parser.parse_args()
parsed.func(parsed)


Expand Down

0 comments on commit eeaccc4

Please sign in to comment.