Skip to content

Commit

Permalink
comm_og_service_tool: Avoid non-intuitive command line parse errors
Browse files Browse the repository at this point in the history
Sub-commands are now required for some commands.

Co-authored-by: Ryan <[email protected]>
  • Loading branch information
mefistotelis and UVTRyan committed Oct 5, 2024
1 parent 68b3627 commit 0612649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comm_og_service_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1638,7 +1638,7 @@ def main():
subpar_flycpar = subparsers.add_parser('FlycParam',
help="flight controller parameters handling")

subpar_flycpar_subcmd = subpar_flycpar.add_subparsers(dest='subcmd',
subpar_flycpar_subcmd = subpar_flycpar.add_subparsers(dest='subcmd', required=True,
help="Flyc Param Command")

subpar_flycpar_list = subpar_flycpar_subcmd.add_parser('list',
Expand Down Expand Up @@ -1690,7 +1690,7 @@ def main():
subpar_camcal = subparsers.add_parser('CameraCalib',
help="camera calibration options")

subpar_camcal_subcmd = subpar_camcal.add_subparsers(dest='subcmd',
subpar_camcal_subcmd = subpar_camcal.add_subparsers(dest='subcmd', required=True,
help="camera calibration Command")

subpar_camcal_encryptcheck = subpar_camcal_subcmd.add_parser('EncryptCheck',
Expand Down

0 comments on commit 0612649

Please sign in to comment.