summaryrefslogtreecommitdiffstatshomepage
path: root/tools/pyboard.py
diff options
context:
space:
mode:
authorLars Kellogg-Stedman <lars@oddbit.com>2020-03-25 13:31:18 -0400
committerDamien George <damien.p.george@gmail.com>2020-03-30 11:37:32 +1100
commit3a0f64fc7aafe9fa39f518aec389ef5f55b40007 (patch)
treeb1fa252ffb9e3c5f75e4b713810c6e01bbe59a5b /tools/pyboard.py
parent1cf994c48b912254802f48e31eaf95e49ac55a82 (diff)
downloadmicropython-3a0f64fc7aafe9fa39f518aec389ef5f55b40007.tar.gz
micropython-3a0f64fc7aafe9fa39f518aec389ef5f55b40007.zip
tools/pyboard.py: Add -d as an alias for --device.
Diffstat (limited to 'tools/pyboard.py')
-rwxr-xr-xtools/pyboard.py1
1 files changed, 1 insertions, 0 deletions
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",