Skip to content

Commit 1cf89e7

Browse files
committed
cli: add short option for --name in run command
This adds a -n shortcut for --name in the pybricksdev run command.
1 parent dc0e7a4 commit 1cf89e7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Added
1010
- Support for Python 3.9.
11+
- Short `-n` option for `--name` option in `pybricksdev run`.
1112

1213
### Changed
1314
- Update to Bleak v0.12.0.

pybricksdev/cli/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def add_parser(self, subparsers: argparse._SubParsersAction):
102102
help="path to a MicroPython script or inline script",
103103
)
104104
parser.add_argument(
105+
"-n",
105106
"--name",
106107
metavar="<name>",
107108
required=False,

0 commit comments

Comments
 (0)