Files
python/meshtastic/__main__.py
2020-04-27 17:49:16 -07:00

23 lines
494 B
Python

#!python3
import argparse
from .interface import StreamInterface
import logging
def main():
"""Perform command line meshtastic operations"""
parser = argparse.ArgumentParser()
parser.add_argument("--debug", help="Show debug log message",
action="store_true")
args = parser.parse_args()
logging.basicConfig(level=logging.DEBUG if args.debug else logging.INFO)
client = StreamInterface("/dev/ttyUSB0")
if __name__ == "__main__":
main()