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 ae89763
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ 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
)
parser.add_argument("--fov", help="Field of View.", choices=list(proto.EnumLens.values()), default=None, type=int)
return add_cli_args_and_parse(parser, wifi=False)


Expand Down

0 comments on commit ae89763

Please sign in to comment.