[llvm] 3afa215 - [llvm-ar][nfc] Reword help message to be less ambiguous on what p and t do.
Vy Nguyen via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 31 14:48:28 PDT 2021
Author: Vy Nguyen
Date: 2021-08-31T17:48:04-04:00
New Revision: 3afa2151f8e6f435c094a7cf37ec6a4ca8c080e2
URL: https://github.com/llvm/llvm-project/commit/3afa2151f8e6f435c094a7cf37ec6a4ca8c080e2
DIFF: https://github.com/llvm/llvm-project/commit/3afa2151f8e6f435c094a7cf37ec6a4ca8c080e2.diff
LOG: [llvm-ar][nfc] Reword help message to be less ambiguous on what p and t do.
The current help msg isn't super clear on whether t prints the content of the files or just the list of files.
(I'd certainly thought it'd print the list of files, and accidentally had a bunch of "gargabe" printed to my terminal).
Similarly, t sounded like it'd do what p actually did.
Differential Revision: https://reviews.llvm.org/D109018
Added:
Modified:
llvm/tools/llvm-ar/llvm-ar.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp
index 68084ba28dae8..175ec8d022c2c 100644
--- a/llvm/tools/llvm-ar/llvm-ar.cpp
+++ b/llvm/tools/llvm-ar/llvm-ar.cpp
@@ -96,11 +96,11 @@ USAGE: llvm-ar [options] [-]<operation>[modifiers] [relpos] [count] <archive> [f
OPERATIONS:
d - delete [files] from the archive
m - move [files] in the archive
- p - print [files] found in the archive
+ p - print contents of [files] found in the archive
q - quick append [files] to the archive
r - replace or insert [files] into the archive
s - act as ranlib
- t - display contents of archive
+ t - display list of files in archive
x - extract [files] from the archive
MODIFIERS:
More information about the llvm-commits
mailing list