mirror of
https://github.com/meshtastic/python.git
synced 2026-01-13 02:08:00 -05:00
Add args for cli
This commit is contained in:
@@ -1809,12 +1809,40 @@ def addRemoteAdminArgs(parser: argparse.ArgumentParser) -> argparse.ArgumentPars
|
||||
action="store_true",
|
||||
)
|
||||
|
||||
group.add_argument(
|
||||
"--backup-prefs",
|
||||
help="Tell the destination node to create a backup preferences file."
|
||||
"Location: 0 for local flash, 1 for SD card.",
|
||||
default=None,
|
||||
nargs="?",
|
||||
const=0,
|
||||
)
|
||||
|
||||
group.add_argument(
|
||||
"--restore-prefs",
|
||||
help="Tell the destination node to remove backup preferences files."
|
||||
"Location: 0 for local flash, 1 for SD card.",
|
||||
default=None,
|
||||
nargs="?",
|
||||
const=0,
|
||||
)
|
||||
|
||||
group.add_argument(
|
||||
"--remove-backup-prefs",
|
||||
help="Tell the destination node to remove backup preferences files."
|
||||
"Location: 0 for local flash, 1 for SD card.",
|
||||
default=None,
|
||||
nargs="?",
|
||||
const=0,
|
||||
)
|
||||
|
||||
group.add_argument(
|
||||
"--remove-node",
|
||||
help="Tell the destination node to remove a specific node from its NodeDB. "
|
||||
"Use the node ID with a '!' or '0x' prefix or the node number.",
|
||||
metavar="!xxxxxxxx"
|
||||
)
|
||||
|
||||
group.add_argument(
|
||||
"--set-favorite-node",
|
||||
help="Tell the destination node to set the specified node to be favorited on the NodeDB. "
|
||||
|
||||
Reference in New Issue
Block a user