Skip to content

Commit 9ffdc30

Browse files
committed
Make remote hardware args live in their own little box
1 parent 98b7a7d commit 9ffdc30

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

meshtastic/__main__.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,16 +1442,6 @@ def initParser():
14421442
"--reply", help="Reply to received messages", action="store_true"
14431443
)
14441444

1445-
group.add_argument(
1446-
"--gpio-wrb", nargs=2, help="Set a particular GPIO # to 1 or 0", action="append"
1447-
)
1448-
1449-
group.add_argument("--gpio-rd", help="Read from a GPIO mask (ex: '0x10')")
1450-
1451-
group.add_argument(
1452-
"--gpio-watch", help="Start watching a GPIO mask for changes (ex: '0x10')"
1453-
)
1454-
14551445
group.add_argument(
14561446
"--no-time",
14571447
help="Suppress sending the current time to the mesh",
@@ -1531,6 +1521,21 @@ def initParser():
15311521
action="store_true",
15321522
)
15331523

1524+
remoteHardwareArgs = parser.add_argument_group('Remote Hardware', 'Arguments related to the Remote Hardware module')
1525+
1526+
remoteHardwareArgs.add_argument(
1527+
"--gpio-wrb", nargs=2, help="Set a particular GPIO # to 1 or 0", action="append"
1528+
)
1529+
1530+
remoteHardwareArgs.add_argument(
1531+
"--gpio-rd", help="Read from a GPIO mask (ex: '0x10')"
1532+
)
1533+
1534+
remoteHardwareArgs.add_argument(
1535+
"--gpio-watch", help="Start watching a GPIO mask for changes (ex: '0x10')"
1536+
)
1537+
1538+
15341539
have_tunnel = platform.system() == "Linux"
15351540
if have_tunnel:
15361541
tunnelArgs = parser.add_argument_group('Tunnel', 'Arguments related to establishing a tunnel device over the mesh.')

0 commit comments

Comments
 (0)