-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Consolidate subcommand parsing in bootstrap #95937
Comments
[continued from #95875]
Yeah, I'd love to work on this. Last night I got a proof of concept "add a new type" implementation working just to see what it'd be like, but I can change gears and look into adding the needed new variants to Another thing I noticed that can be improved in this area, there's several commands that say @rustbot claim |
@rustbot label +A-rustbuild +E-easy |
…anup, r=jyn514 bootstrap: consolidate subcommand parsing and matching There's several places where the x.py command names are matched as strings, leading to some inconsistencies and opportunities for cleanup. * Add Format, Clean, and Setup variants to builder::Kind. * Use Kind to parse the x.py subcommand name (including aliases) * Match on the subcommand Kind rather than strings when handling options and help text. * Several subcommands don't display any paths when run with `-h -v` even though the help text indicates that they should. Fix this and refactor so that manually keeping matches in sync isn't necessary. Fixes rust-lang#95937
…up, r=jyn514 bootstrap: consolidate subcommand parsing and matching There's several places where the x.py command names are matched as strings, leading to some inconsistencies and opportunities for cleanup. * Add Format, Clean, and Setup variants to builder::Kind. * Use Kind to parse the x.py subcommand name (including aliases) * Match on the subcommand Kind rather than strings when handling options and help text. * Several subcommands don't display any paths when run with `-h -v` even though the help text indicates that they should. Fix this and refactor so that manually keeping matches in sync isn't necessary. Fixes rust-lang#95937
We should consolidate the subcommand parsing to be consistent - currently, there's many different places where commands are parsed, leading to inconsistencies where they don't match up (so to speak :P).
Originally posted by @jyn514 in #95875 (review)
cc @aswild
@rustbot label +A-bootstrap
The text was updated successfully, but these errors were encountered: