Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List dev-platform targets with a new --list-targets option #3544

Closed
weberw opened this issue Jun 4, 2020 · 4 comments
Closed

List dev-platform targets with a new --list-targets option #3544

weberw opened this issue Jun 4, 2020 · 4 comments
Assignees
Milestone

Comments

@weberw
Copy link

weberw commented Jun 4, 2020

Configuration

Operating system: all

PlatformIO Version (platformio --version): 4.3.4

Description of problem

According to https://docs.platformio.org/en/stable/projectconf/section_env_build.html#targets running platformio run --target should produce a list of targets, however an error is generated instead

Steps to Reproduce

  1. platformio run --target

Actual Results

Error: --target option requires an argument

Expected Results

A list of build targets

If problems with PlatformI

@jnr2820
Copy link

jnr2820 commented Jun 4, 2020

I'm seeing this too.

pio run --target
Error: --target option requires an argument

pio --version
PlatformIO, version 4.3.4

@ivankravets ivankravets added this to the 4.4.0 milestone Jun 9, 2020
@ivankravets ivankravets self-assigned this Jun 9, 2020
@ivankravets ivankravets changed the title --target with no arguments does not produce list of targets List dev-platform targets with a new --list-targets option Jun 9, 2020
@ivankravets
Copy link
Member

Thanks! Indeed, this feature has not been implemented yet. I renamed this issue.

@ivankravets
Copy link
Member

Please re-test with pio upgrade --dev version of PIO core. See https://docs.platformio.org/en/latest/core/userguide/cmd_run.html#cmdoption-platformio-run-list-targets

@jnr2820
Copy link

jnr2820 commented Jun 26, 2020

It's working for me. (Also, it is very neat. Thank you)

Screen Shot 2020-06-26 at 3 53 31 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants