From 3a0f64fc7aafe9fa39f518aec389ef5f55b40007 Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Wed, 25 Mar 2020 13:31:18 -0400 Subject: tools/pyboard.py: Add -d as an alias for --device. --- tools/pyboard.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/pyboard.py') diff --git a/tools/pyboard.py b/tools/pyboard.py index 2184362421..6376b13c7e 100755 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -557,6 +557,7 @@ def main(): cmd_parser = argparse.ArgumentParser(description="Run scripts on the pyboard.") cmd_parser.add_argument( + "-d", "--device", default=os.environ.get("PYBOARD_DEVICE", "/dev/ttyACM0"), help="the serial device or the IP address of the pyboard", -- cgit v1.2.3