CLI upload command seems to ignore "--format json" option #1961
Labels
conclusion: resolved
Issue was resolved
topic: CLI
Related to the command line interface
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Milestone
Describe the problem
When running
arduino-cli upload [...] --format json
the CLI command doesn't respond with JSON output on the command line. A successful run seems to return no output, while errors are simply written to stdout.To reproduce
Open the terminal and upload any sketch with the
--format json
option.For example:
arduino-cli upload /home/user/Arduino/MySketch --format json
In my specific case:
Expected behavior
If the upload was successful, there should be a positive response encoded as JSON, for example:
If there were errors, the errors should be displayed in a JSON format, not simple text.
Arduino CLI version
Version: 0.28.0 Commit: 06fb190 Date: 2022-10-18T15:53:04Z
Operating system
macOS
Operating system version
macOS 12.6
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: