Skip to content

compile flag -o removed, how to do this in current version? #983

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
harryberlin opened this issue Sep 25, 2020 · 4 comments
Closed

compile flag -o removed, how to do this in current version? #983

harryberlin opened this issue Sep 25, 2020 · 4 comments
Assignees
Labels
conclusion: declined Will not be worked on

Comments

@harryberlin
Copy link

harryberlin commented Sep 25, 2020

Bug Report

Current behavior

C:\Users...\Downloads\arduino-cli\arduino-cli.exe compile -b arduino:avr:nano -o C:\temp\MySketch\Release\MYNANO C:\Users....\MySketch

Expected behavior

how to use the -o flag with current version?

Environment

  • CLI version (output of arduino-cli version): 0.13.0 32bit
  • OS and platform: windows 10

Additional context

@ubidefeo
Copy link

hi @harryberlin
I think we lost the short flag format for that at some point, but not sure why (@cmaglie / @silvanocerza ?)
you can use --output-dir which has recently gotten some love and works very well for what you need to do :)

@harryberlin
Copy link
Author

sorry, it's not the same. now, i get a subfolder.
is there a solution to only get the .hex file without bootloader and other without .eep + .elf?
had a workaroudn to compile with -o flag and delete the other not needed files.

@ubidefeo
Copy link

@harryberlin I've assigned this task
we'll get back to you soon

@ubidefeo
Copy link

@harryberlin
We discussed this one and essentially the old -o was causing issues because not every 3rd party platform developer follows specs and we had complaints because things just broke.
a few releases ago we moved to a system that outputs all the required files into a folder (build or one of your choice using the --output-dir flag).
We won't reintroduce that flag, so I invite you to either use --output-dir and have a cleanup script to be called after your CLI operations or to embrace this behaviour.
Hope it's not too much of an inconvenience, but at least this doesn't break when a 3rd party developer does things their way without reading documentation 😬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: declined Will not be worked on
Projects
None yet
Development

No branches or pull requests

5 participants