Skip to content

Factor CLI argument processing for flags that are common across commands #1508

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

Closed
cmaglie opened this issue Oct 13, 2021 · 0 comments · Fixed by #1542
Closed

Factor CLI argument processing for flags that are common across commands #1508

cmaglie opened this issue Oct 13, 2021 · 0 comments · Fixed by #1542
Assignees
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@cmaglie
Copy link
Member

cmaglie commented Oct 13, 2021

We could use an approach similar to the --port/-p, --protocol/-l flags: https://github.com/arduino/arduino-cli/blob/master/cli/arguments/port.go

Flags that comes to mind:

  • sketch path argument
  • --fqbn/-b (sometimes is determined from sketch.json inside sketch path)
@cmaglie cmaglie added the type: enhancement Proposed improvement label Oct 13, 2021
@cmaglie cmaglie self-assigned this Oct 13, 2021
@per1234 per1234 added the topic: code Related to content of the project itself label Oct 13, 2021
@umbynos umbynos assigned umbynos and unassigned cmaglie Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants