From 7a7d01babb68d869080fa9cb3f9134bf19656d55 Mon Sep 17 00:00:00 2001 From: rbovill Date: Mon, 4 Nov 2024 18:04:09 -0700 Subject: [PATCH] Fine-tune arguments. --- .../ts/IntegrationTests/csc_state_transition.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/python/lsst/ts/IntegrationTests/csc_state_transition.py b/python/lsst/ts/IntegrationTests/csc_state_transition.py index 3fb927ab..04eb957e 100644 --- a/python/lsst/ts/IntegrationTests/csc_state_transition.py +++ b/python/lsst/ts/IntegrationTests/csc_state_transition.py @@ -93,23 +93,26 @@ def csc_state_transition() -> None: parser = argparse.ArgumentParser() parser.add_argument( "csc", - metavar="csc", - nargs="?", + metavar="CSC[:index]", + nargs="1", + required=True, type=str, - help="Specify which CSC to command (case sensitive).", + help="Specify which CSC[:index] to command (case sensitive).", ) parser.add_argument( "state", metavar="state", - nargs="?", + nargs="1", + required=True, type=str, choices=state_list, help="Specify to which state to transition.", ) parser.add_argument( "sq_index", - metavar="sq_index", - nargs="?", + metavar="scriptqueue_index", + nargs="1", + required=True, type=int, choices=[1, 2, 3], help="Specify which ScriptQueue to use.",