[llvm-ar] Correct help text

Corrected and simplified the help text.

It was clearly too difficult to maintain before (see e.g. @227296) making it
simpler and more consistent it should help people keep it up to date.

Differential Revision: https://reviews.llvm.org/D48577

llvm-svn: 338703
This commit is contained in:
Ben Dunbobbin 2018-08-02 11:27:38 +00:00
parent c2619a2f3d
commit a318e2c603
1 changed files with 26 additions and 28 deletions

View File

@ -63,46 +63,44 @@ OPTIONS:
)"; )";
const char ArHelp[] = R"( const char ArHelp[] = R"(
OVERVIEW: LLVM Archiver (llvm-ar) OVERVIEW: LLVM Archiver
This program archives bitcode files into single libraries USAGE: llvm-ar [options] [-]<operation>[modifiers] [relpos] <archive> [files]
llvm-ar -M [<mri-script]
USAGE: llvm-ar [options] [relpos] [count] <archive-file> [members]...
OPTIONS: OPTIONS:
-M - --format - Archive format to create
-format - Archive format to create
=default - default =default - default
=gnu - gnu =gnu - gnu
=darwin - darwin =darwin - darwin
=bsd - bsd =bsd - bsd
-plugin=<string> - plugin (ignored for compatibility --plugin=<string> - Ignored for compatibility
-help - Display available options --help - Display available options
-version - Display the version of this program --version - Display the version of this program
OPERATIONS: OPERATIONS:
d[NsS] - delete file(s) from the archive d - delete [files] from the archive
m[abiSs] - move file(s) in the archive m - move [files] in the archive
p[kN] - print file(s) found in the archive p - print [files] found in the archive
q[ufsS] - quick append file(s) to the archive q - quick append [files] to the archive
r[abfiuRsS] - replace or insert file(s) into the archive r - replace or insert [files] into the archive
s - act as ranlib
t - display contents of archive t - display contents of archive
x[No] - extract file(s) from the archive x - extract [files] from the archive
MODIFIERS (operation specific): MODIFIERS:
[a] - put file(s) after [relpos] [a] - put [files] after [relpos]
[b] - put file(s) before [relpos] (same as [i]) [b] - put [files] before [relpos] (same as [i])
[c] - do not warn if archive had to be created
[D] - use zero for timestamps and uids/gids (default) [D] - use zero for timestamps and uids/gids (default)
[i] - put file(s) before [relpos] (same as [b]) [i] - put [files] before [relpos] (same as [b])
[l] - ignored for compatibility
[o] - preserve original dates [o] - preserve original dates
[s] - create an archive index (cf. ranlib) [s] - create an archive index (cf. ranlib)
[S] - do not build a symbol table [S] - do not build a symbol table
[T] - create a thin archive [T] - create a thin archive
[u] - update only files newer than archive contents [u] - update only [files] newer than archive contents
[U] - use actual timestamps and uids/gids [U] - use actual timestamps and uids/gids
MODIFIERS (generic):
[c] - do not warn if the library had to be created
[v] - be verbose about actions taken [v] - be verbose about actions taken
)"; )";