-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[docs] don't use "=" in lit options with arguments #142340
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
Conversation
|
@llvm/pr-subscribers-testing-tools Author: Konrad Kleine (kwk) ChangesThis is a fixup for #141851. Full diff: https://github.com/llvm/llvm-project/pull/142340.diff 1 Files Affected:
diff --git a/llvm/docs/CommandGuide/lit.rst b/llvm/docs/CommandGuide/lit.rst
index 86879f870e06e..7f2ea6b82a716 100644
--- a/llvm/docs/CommandGuide/lit.rst
+++ b/llvm/docs/CommandGuide/lit.rst
@@ -218,7 +218,7 @@ EXECUTION OPTIONS
Stop execution after the given number of failures.
-.. option:: --max-retries-per-test N
+.. option:: --max-retries-per-test=N
Retry running failed tests at most ``N`` times.
Out of the following options to rerun failed tests the
|
nikic
left a comment
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.
It seems like the docs use a mix of both styles -- should we normalize to one or the other for all options?
= in --max-retries-per-test=N
Oh, indeed. I must say in terms of readability I like the one without the Here are some stats:
That means the majority of options with additional arguments uses Consistency wise we should probably use |
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.
The print text that lit itself prints uses whitespace instead of =, so I'd be inclined to normalize the other way around...
llvm/docs/CommandGuide/lit.rst
Outdated
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.
Hm, -o=PATH looks quite unusual.
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.
It does.
Like I said, this would have been my favourable way too but I went with the majority of what was in the file. Let me work on this real quick. |
|
@nikic can you recheck? |
llvm/docs/CommandGuide/lit.rst
Outdated
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.
Is this change correct? I think = here is part of the parameter argument.
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.
I am a lousy programmer it seems. But luckily you're a great reviewer. You're absolutely right. This HAS to stay.
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.
This is fixed now.
This is a fixup for llvm#141851 and removes `=` from all options with additional arguments. Before 14 out of 22 options with arguments used "=" and 7 didn't.
nikic
left a comment
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, this matches llvm-lit --help.
This is a fixup for #141851 and removes
=from alloptions with additional arguments.
Before 14 out of 22 options with arguments used "=" and 7 didn't.