-// printMoreHelp - Provide additional help output explaining the operations and
-// modifiers of llvm-ar. This function is called by the CommandLine library
-// when the --help option is given because we set the global cl::MoreHelp
-// variable to the address of this function.
-void printMoreHelp() {
- std::cout
- << "\nOPERATIONS:\n"
- << " d[NsS] - delete file(s) from the archive\n"
- << " m[abiSs] - move file(s) in the archive\n"
- << " p[kN] - print file(s) found in the archive\n"
- << " q[ufsS] - quick append file(s) to the archive\n"
- << " r[abfiuzRsS] - replace or insert file(s) into the archive\n"
- << " t - display contents of archive\n"
- << " x[No] - extract file(s) from the archive\n";
-
- std::cout
- << "\nMODIFIERS (operation specific):\n"
- << " [a] - put file(s) after [relpos]\n"
- << " [b] - put file(s) before [relpos] (same as [i])\n"
- << " [f] - truncate inserted file names\n"
- << " [i] - put file(s) before [relpos] (same as [b])\n"
- << " [k] - always print bytecode files (default is to skip them)\n"
- << " [N] - use instance [count] of name\n"
- << " [o] - preserve original dates\n"
- << " [P] - use full path names when matching\n"
- << " [R] - recurse through directories when inserting\n"
- << " [s] - create an archive index (cf. ranlib)\n"
- << " [S] - do not build a symbol table\n"
- << " [u] - update only files newer than archive contents\n"
- << " [z] - compress files before inserting/extracting\n";
-
- std::cout
- << "\nMODIFIERS (generic):\n"
- << " [c] - do not warn if the library had to be created\n"
- << " [v] - be verbose about actions taken\n"
- << " [V] - be *really* verbose about actions taken\n";
-}
-
-// printUse - Print out our usage information. This is used in cases where the
-// user has made a mistake on the command line syntax.
-void printUse() {
- std::cout
- << "OVERVIEW: LLVM Archiver (llvm-ar)\n\n"
- << " This program archives bytecode files into single libraries\n\n"
- << "USAGE: llvm-ar [-X32_64] [-]{operation}[modifiers]... "
- << "[relpos] [count] archive-file [files..]\n";
-
- printMoreHelp();
- exit(1);
-}
-