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

Improve cli argument parsing #31

Open
Urhengulas opened this issue Apr 5, 2021 · 1 comment
Open

Improve cli argument parsing #31

Urhengulas opened this issue Apr 5, 2021 · 1 comment
Labels
difficulty: medium Somewhat difficult to solve priority: low status: needs design This feature needs design work to move forward type: enhancement New feature or request

Comments

@Urhengulas
Copy link
Member

Currently we have various limitations of how to specify cli arguments. An out-of-the-box solution like clap¹ would be helpful.
One limitation example is that it's only possible to pass the linker script as -Tmemory.x, but not as -T memory.x.


¹ - clap in particular isn't currently easily implementable (see #29 for one approach), but would be with one of clap-rs/clap#1880, clap-rs/clap#1404.

@Urhengulas Urhengulas added type: enhancement New feature or request difficulty: medium Somewhat difficult to solve priority: low status: needs design This feature needs design work to move forward labels Apr 5, 2021
@Urhengulas Urhengulas added this to Incoming in Issue Triage via automation Apr 5, 2021
@Urhengulas Urhengulas moved this from Incoming to Triaged in Issue Triage Apr 5, 2021
@Urhengulas
Copy link
Member Author

Urhengulas commented Apr 6, 2021

Also this feature should help removing this hack:

flip-link/src/main.rs

Lines 108 to 109 in 3e43bab

// HACK `-L` needs to go after `-flavor gnu`; position is currently hardcoded
c2.args(&args[..2])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: medium Somewhat difficult to solve priority: low status: needs design This feature needs design work to move forward type: enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

1 participant