Skip to content

Commit eeaccc4

Browse files
meshyTenzer
andcommitted
Let argparse source the CLI arguments
There's no point in passing in the defaults. Co-authored-by: Jeppe Fihl-Pearson <[email protected]>
1 parent ea09fac commit eeaccc4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mypy_json_report.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ def main() -> None:
4343

4444
parse_parser.set_defaults(func=_parse_command)
4545

46-
args = sys.argv[1:]
47-
parsed = parser.parse_args(args)
46+
parsed = parser.parse_args()
4847
parsed.func(parsed)
4948

5049

0 commit comments

Comments
 (0)