specify nargs

This commit is contained in:
Michael Gillett
2025-02-18 14:53:01 -05:00
parent bd68739158
commit edff956f9d

View File

@@ -1344,6 +1344,7 @@ def addSelectionArgs(parser: argparse.ArgumentParser) -> argparse.ArgumentParser
"--dest",
help="The destination node id for any sent commands, if not set '^all' or '^local' is assumed as appropriate",
default=None,
nargs=1,
metavar=("!XXXXXXXX", "0xXXXXXXXX"),
)
@@ -1648,6 +1649,7 @@ def addRemoteActionArgs(parser: argparse.ArgumentParser) -> argparse.ArgumentPar
"You need pass the destination ID as argument, like "
"this: '--traceroute !ba4bf9d0' "
"Only nodes with a shared channel can be traced.",
nargs=1,
metavar=("!XXXXXXXX", "0xXXXXXXXX"),
)
@@ -1728,26 +1730,31 @@ def addRemoteAdminArgs(parser: argparse.ArgumentParser) -> argparse.ArgumentPars
group.add_argument(
"--remove-node",
help="Tell the destination node to remove a specific node from its DB, by node number or ID",
nargs=1,
metavar=("!XXXXXXXX", "0xXXXXXXXX")
)
group.add_argument(
"--set-favorite-node",
help="Tell the destination node to set the specified node to be favorited on the NodeDB on the devicein its DB, by number or ID",
nargs=1,
metavar=("!XXXXXXXX", "0xXXXXXXXX")
)
group.add_argument(
"--remove-favorite-node",
help="Tell the destination node to set the specified node to be un-favorited on the NodeDB on the device, by number or ID",
nargs=1,
metavar=("!XXXXXXXX", "0xXXXXXXXX")
)
group.add_argument(
"--set-ignored-node",
help="Tell the destination node to set the specified node to be ignored on the NodeDB on the devicein its DB, by number or ID",
nargs=1,
metavar=("!XXXXXXXX", "0xXXXXXXXX")
)
group.add_argument(
"--remove-ignored-node",
help="Tell the destination node to set the specified node to be un-ignored on the NodeDB on the device, by number or ID",
nargs=1,
metavar=("!XXXXXXXX", "0xXXXXXXXX")
)
group.add_argument(