Skip to content

Commit 336e515

Browse files
committed
Add args for cli
1 parent 3008e03 commit 336e515

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

meshtastic/__main__.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,12 +1809,40 @@ def addRemoteAdminArgs(parser: argparse.ArgumentParser) -> argparse.ArgumentPars
18091809
action="store_true",
18101810
)
18111811

1812+
group.add_argument(
1813+
"--backup-prefs",
1814+
help="Tell the destination node to create a backup preferences file."
1815+
"Location: 0 for local flash, 1 for SD card.",
1816+
default=None,
1817+
nargs="?",
1818+
const=0,
1819+
)
1820+
1821+
group.add_argument(
1822+
"--restore-prefs",
1823+
help="Tell the destination node to remove backup preferences files."
1824+
"Location: 0 for local flash, 1 for SD card.",
1825+
default=None,
1826+
nargs="?",
1827+
const=0,
1828+
)
1829+
1830+
group.add_argument(
1831+
"--remove-backup-prefs",
1832+
help="Tell the destination node to remove backup preferences files."
1833+
"Location: 0 for local flash, 1 for SD card.",
1834+
default=None,
1835+
nargs="?",
1836+
const=0,
1837+
)
1838+
18121839
group.add_argument(
18131840
"--remove-node",
18141841
help="Tell the destination node to remove a specific node from its NodeDB. "
18151842
"Use the node ID with a '!' or '0x' prefix or the node number.",
18161843
metavar="!xxxxxxxx"
18171844
)
1845+
18181846
group.add_argument(
18191847
"--set-favorite-node",
18201848
help="Tell the destination node to set the specified node to be favorited on the NodeDB. "

0 commit comments

Comments
 (0)