Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions platformio/run/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
@click.option("-t", "--target", multiple=True)
@click.option("--upload-port")
@click.option("--monitor-port")
@click.option("-p", "--port", default=None, help="Shortcut: set both upload-port and monitor-port")
@click.option(
"-d",
"--project-dir",
Expand Down Expand Up @@ -84,6 +85,7 @@ def cli( # pylint: disable=too-many-positional-arguments
target,
upload_port,
monitor_port,
port,
project_dir,
project_conf,
jobs,
Expand All @@ -93,6 +95,10 @@ def cli( # pylint: disable=too-many-positional-arguments
silent,
verbose,
):
if port:
upload_port = upload_port or port
monitor_port = monitor_port or port

app.set_session_var("custom_project_conf", project_conf)

# find project directory on upper level
Expand Down