llvm.org GIT mirror llvm / 2153e58
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@338703 91177308-0d34-0410-b5e6-96231b3b80d8 Ben Dunbobbin 1 year, 23 days ago
1 changed file(s) with 28 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
6262 )";
6363
6464 const char ArHelp[] = R"(
65 OVERVIEW: LLVM Archiver (llvm-ar)
66
67 This program archives bitcode files into single libraries
68
69 USAGE: llvm-ar [options] [relpos] [count] [members]...
65 OVERVIEW: LLVM Archiver
66
67 USAGE: llvm-ar [options] [-][modifiers] [relpos] [files]
68 llvm-ar -M [
7069
7170 OPTIONS:
72 -M -
73 -format - Archive format to create
74 =default - default
75 =gnu - gnu
76 =darwin - darwin
77 =bsd - bsd
78 -plugin= - plugin (ignored for compatibility
79 -help - Display available options
80 -version - Display the version of this program
71 --format - Archive format to create
72 =default - default
73 =gnu - gnu
74 =darwin - darwin
75 =bsd - bsd
76 --plugin= - Ignored for compatibility
77 --help - Display available options
78 --version - Display the version of this program
8179
8280 OPERATIONS:
83 d[NsS] - delete file(s) from the archive
84 m[abiSs] - move file(s) in the archive
85 p[kN] - print file(s) found in the archive
86 q[ufsS] - quick append file(s) to the archive
87 r[abfiuRsS] - replace or insert file(s) into the archive
88 t - display contents of archive
89 x[No] - extract file(s) from the archive
90
91 MODIFIERS (operation specific):
92 [a] - put file(s) after [relpos]
93 [b] - put file(s) before [relpos] (same as [i])
81 d - delete [files] from the archive
82 m - move [files] in the archive
83 p - print [files] found in the archive
84 q - quick append [files] to the archive
85 r - replace or insert [files] into the archive
86 s - act as ranlib
87 t - display contents of archive
88 x - extract [files] from the archive
89
90 MODIFIERS:
91 [a] - put [files] after [relpos]
92 [b] - put [files] before [relpos] (same as [i])
93 [c] - do not warn if archive had to be created
9494 [D] - use zero for timestamps and uids/gids (default)
95 [i] - put file(s) before [relpos] (same as [b])
95 [i] - put [files] before [relpos] (same as [b])
96 [l] - ignored for compatibility
9697 [o] - preserve original dates
9798 [s] - create an archive index (cf. ranlib)
9899 [S] - do not build a symbol table
99100 [T] - create a thin archive
100 [u] - update only files newer than archive contents
101 [u] - update only [files] newer than archive contents
101102 [U] - use actual timestamps and uids/gids
102
103 MODIFIERS (generic):
104 [c] - do not warn if the library had to be created
105103 [v] - be verbose about actions taken
106104 )";
107105