-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Reformat driver arguments #12954
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
Reformat driver arguments #12954
Conversation
Ignore the first handful of commits, those are from #12873. Once that's merged I'll rebase this branch and they should disappear. |
0ba3411
to
d79919c
Compare
…g them with other argument groups.
…in order to remain consistent in style throughout the build_swift module.
… consistent and more readable.
…on strings first and then the action (if applicable).
d79919c
to
3ac371e
Compare
@swift-ci please test |
@swift-ci please smoke test |
@swift-ci please test |
Build failed |
@swift-ci please smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Purpose
This is a follow-up PR to #12873. There's no functional changes in this PR, rather just a bunch of reformatting in the
driver_arguments.py
file to make all the argument parsing code more consistent.I've moved all the top-level arguments into a single grouping at the top of the parser code. Then I re-formatted all string literals to use single rather than double quotes. Lastly I re-ordered the arguments passed to
parser.add_argument
such thathelp
is always last (for readability) andaction
comes first.rdar://34336890