mirror of
https://github.com/meshtastic/python.git
synced 2026-01-02 21:07:55 -05:00
Document automatic device search
This commit is contained in:
@@ -1029,7 +1029,7 @@ def initParser():
|
||||
|
||||
parser.add_argument(
|
||||
"--port",
|
||||
help="The port the Meshtastic device is connected to, i.e. /dev/ttyUSB0. If unspecified, we'll try to find it.",
|
||||
help="The port the Meshtastic device is connected to, i.e. /dev/ttyUSB0.",
|
||||
default=None,
|
||||
)
|
||||
|
||||
@@ -1387,7 +1387,9 @@ def initParser():
|
||||
def main():
|
||||
"""Perform command line meshtastic operations"""
|
||||
our_globals = Globals.getInstance()
|
||||
parser = argparse.ArgumentParser()
|
||||
parser = argparse.ArgumentParser(
|
||||
epilog="If neither --port nor --host are specified, we search for a compatible serial device, "
|
||||
"and if none is found, then attempt a TCP connection to localhost.")
|
||||
our_globals.set_parser(parser)
|
||||
initParser()
|
||||
common()
|
||||
|
||||
Reference in New Issue
Block a user