Skip to content

Commit

Permalink
cast strings from CLI to the correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
TinfoilSubmarine committed Sep 10, 2024
1 parent b0a0bfc commit 8072406
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,12 @@ def parse_arguments() -> argparse.Namespace:
parser.add_argument("--min_bit", type=int, help="Minimum bitrate.", default=1000)
parser.add_argument("--max_bit", type=int, help="Maximum bitrate.", default=1000)
parser.add_argument("--start_bit", type=int, help="Starting bitrate.", default=1000)
parser.add_argument("--resolution", help="Resolution.", choices=list(proto.EnumWindowSize.values()), default=None)
parser.add_argument("--fov", help="Field of View.", choices=list(proto.EnumLens.values()), default=None)
parser.add_argument(
"--resolution", help="Resolution.", choices=list(proto.EnumWindowSize.values()), default=None, type=int # type: ignore
)
parser.add_argument(
"--fov", help="Field of View.", choices=list(proto.EnumLens.values()), default=None, type=int # type: ignore
)
return add_cli_args_and_parse(parser, wifi=False)


Expand Down

0 comments on commit 8072406

Please sign in to comment.