Skip to content

Commit 4522a8a

Browse files
committed
Document automatic device search
1 parent 14813e5 commit 4522a8a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

meshtastic/__main__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ def initParser():
10291029

10301030
parser.add_argument(
10311031
"--port",
1032-
help="The port the Meshtastic device is connected to, i.e. /dev/ttyUSB0. If unspecified, we'll try to find it.",
1032+
help="The port the Meshtastic device is connected to, i.e. /dev/ttyUSB0.",
10331033
default=None,
10341034
)
10351035

@@ -1387,7 +1387,9 @@ def initParser():
13871387
def main():
13881388
"""Perform command line meshtastic operations"""
13891389
our_globals = Globals.getInstance()
1390-
parser = argparse.ArgumentParser()
1390+
parser = argparse.ArgumentParser(
1391+
epilog="If neither --port nor --host are specified, we search for a compatible serial device, "
1392+
"and if none is found, then attempt a TCP connection to localhost.")
13911393
our_globals.set_parser(parser)
13921394
initParser()
13931395
common()

0 commit comments

Comments
 (0)