Skip to content

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

Closed
@cmaglie

Description

@cmaglie

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)

Metadata

Metadata

Assignees

Labels

topic: codeRelated to content of the project itselftype: enhancementProposed improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions