Skip to content

Commit 3a0f64f

Browse files
larsksdpgeorge
authored andcommitted
tools/pyboard.py: Add -d as an alias for --device.
1 parent 1cf994c commit 3a0f64f

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

docs/reference/pyboard.py.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Running ``pyboard.py --help`` gives the following output:
2424

2525
.. code-block:: text
2626
27-
usage: pyboard [-h] [--device DEVICE] [-b BAUDRATE] [-u USER]
28-
[-p PASSWORD] [-c COMMAND] [-w WAIT] [--follow] [-f]
27+
usage: pyboard [-h] [-d DEVICE] [-b BAUDRATE] [-u USER] [-p PASSWORD]
28+
[-c COMMAND] [-w WAIT] [--follow | --no-follow] [-f]
2929
[files [files ...]]
3030
3131
Run scripts on the pyboard.
@@ -35,8 +35,8 @@ Running ``pyboard.py --help`` gives the following output:
3535
3636
optional arguments:
3737
-h, --help show this help message and exit
38-
--device DEVICE the serial device or the IP address of the
39-
pyboard
38+
-d DEVICE, --device DEVICE
39+
the serial device or the IP address of the pyboard
4040
-b BAUDRATE, --baudrate BAUDRATE
4141
the baud rate of the serial device
4242
-u USER, --user USER the telnet login username

tools/pyboard.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ def main():
557557

558558
cmd_parser = argparse.ArgumentParser(description="Run scripts on the pyboard.")
559559
cmd_parser.add_argument(
560+
"-d",
560561
"--device",
561562
default=os.environ.get("PYBOARD_DEVICE", "/dev/ttyACM0"),
562563
help="the serial device or the IP address of the pyboard",

0 commit comments

Comments
 (0)