-
Notifications
You must be signed in to change notification settings - Fork 11.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
[llvm-ar] --help: fix unquoted angle bracket #101364
base: main
Are you sure you want to change the base?
Conversation
Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it is probably because you do not have write If you have received no comments on your PR for a week, you can request a review If you have further questions, they may be answered by the LLVM GitHub User Guide. You can also ask questions in a comment on this PR, on the LLVM Discord or on the forums. |
@llvm/pr-subscribers-llvm-binary-utilities Author: Linux User (LinuxUserGD) ChangesFull diff: https://github.com/llvm/llvm-project/pull/101364.diff 1 Files Affected:
diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp
index 3b842b76d5c87..56e9b112bec7a 100644
--- a/llvm/tools/llvm-ar/llvm-ar.cpp
+++ b/llvm/tools/llvm-ar/llvm-ar.cpp
@@ -130,7 +130,7 @@ static void printArHelp(StringRef ToolName) {
<< "USAGE: " + ToolName +
" [options] [-]<operation>[modifiers] [relpos] "
"[count] <archive> [files]\n"
- << " " + ToolName + " -M [<mri-script]\n\n";
+ << " " + ToolName + " -M [<mri-script>]\n\n";
outs() << ArOptions;
}
|
llvm/tools/llvm-ar/llvm-ar.cpp
Outdated
@@ -130,7 +130,7 @@ static void printArHelp(StringRef ToolName) { | |||
<< "USAGE: " + ToolName + | |||
" [options] [-]<operation>[modifiers] [relpos] " | |||
"[count] <archive> [files]\n" | |||
<< " " + ToolName + " -M [<mri-script]\n\n"; | |||
<< " " + ToolName + " -M [<mri-script>]\n\n"; |
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 probably [-M mri-script]
since -M
is part of the optional part.
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.
Ok, changed it now
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 think <>
can be removed.
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.
Consider editing the title ([llvm-ar] --help: fix unquoted angle bracket
)
Just change the PR title/descritpion. The git commit message is ignored.
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.
So I don't think the <
is actually spurious! llvm-ar only supports reading MRI scripts from stdin, not from a file specified directly on the command-line. In this case, <
is intended to represent the "read stdin from file" indicator. I think this would be clearer if there was a space between the <
and mri-script
.
I've readded it now with a space, so I guess the syntax would be |
No, it should be |
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.
Thanks, LGTM.
Changes the argument in llvm-ar help message from
-M [<mri-script]
to-M [< mri-script]