From 061264964df82eea8088b14014f045385e59a27b Mon Sep 17 00:00:00 2001 From: mefistotelis Date: Sat, 5 Oct 2024 02:22:30 +0200 Subject: [PATCH] comm_og_service_tool: Avoid non-intuitive command line parse errors Sub-commands are now required for some commands. Co-authored-by: Ryan --- comm_og_service_tool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comm_og_service_tool.py b/comm_og_service_tool.py index 890ceca8..4c77e54f 100755 --- a/comm_og_service_tool.py +++ b/comm_og_service_tool.py @@ -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', @@ -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',