Conversation
|
(rustbot has picked a reviewer for you, use r? to override) |
|
cc @Mark-Simulacrum - this adds a few more dependencies, but makes it easier to maintain the arguments and add features like shell completion. @clubby789 can you time |
If you mean the time including compiling bootstrap including clap, then I'd very much want to see that too. |
|
yes, that's what I meant, with an |
|
|
|
I'm not sure how to handle the old behaviour of |
|
@clubby789 we could look for -h -v before passing the output to clap; it might not be 100% accurate because of --test-args but in practice I think it will work |
aca8c02 to
58f4930
Compare
|
Given that we have clap now, I decided to just have a local |
|
Hello, |
d449e4c to
f1e1008
Compare
|
I'm working on integrating |
|
☔ The latest upstream changes (presumably #108145) made this pull request unmergeable. Please resolve the merge conflicts. |
53bed61 to
67a2533
Compare
|
☔ The latest upstream changes (presumably #108464) made this pull request unmergeable. Please resolve the merge conflicts. |
|
☔ The latest upstream changes (presumably #109097) made this pull request unmergeable. Please resolve the merge conflicts. |
| filetime = "0.2" | ||
| getopts = "0.2.19" | ||
| cc = "1.0.69" | ||
| clap = { version = "4.1.4", features = ["std", "usage", "help", "derive", "error-context"], default-features = false} |
There was a problem hiding this comment.
How bad would it be to manually implement rather than use the derive macro to reduce the compile time impact?
There was a problem hiding this comment.
I don't think we should focus so heavily on the compile times. If they're an issue, we should finally fix #99989 , which is very close to being done.
|
Closing in favour of #110693 |
…lacrum Migrate bootstrap to Clap-based argument parsing Supercedes rust-lang#108083 I chose to re-do the work rather than rebase the onto the large changes since the original PR. If it's preferred I can instead force-push the original PR to this version. cc `@jyn514` `@albertlarsan68`
cc #107375, #107827, @jyn514
Beginning experimenting with moving
src/bootstrap/flags.rstoclapinstead ofgetopts. A fair chunk of logic is missing but this is basically usable right now, so I'm making a draft PR to have it available.