|
|
995aad |
#include "slibtool_driver_impl.h"
|
|
|
11f3c7 |
#include "argv/argv.h"
|
|
|
11f3c7 |
|
|
|
11f3c7 |
const struct argv_option slbt_ar_options[] = {
|
|
|
b87f70 |
{"version", 0,TAG_AR_VERSION,ARGV_OPTARG_NONE,0,0,0,
|
|
|
b87f70 |
"show version information"},
|
|
|
b87f70 |
|
|
|
11f3c7 |
{"help", 'h',TAG_AR_HELP,ARGV_OPTARG_NONE,0,0,0,
|
|
|
11f3c7 |
"display ar mode help"},
|
|
|
11f3c7 |
|
|
|
af36ce |
{"Wcheck", 0,TAG_AR_CHECK,ARGV_OPTARG_NONE,
|
|
|
af36ce |
ARGV_OPTION_HYBRID_ONLY,
|
|
|
af36ce |
"[ARCHIVE-FILE]",0,
|
|
|
d6b3d7 |
"verify that each %s is a valid archive; "
|
|
|
af36ce |
"supported variants are BSD, SysV, and PE/COFF"},
|
|
|
af36ce |
|
|
|
8afddf |
{"Wprint", 0,TAG_AR_PRINT,ARGV_OPTARG_OPTIONAL,
|
|
|
8afddf |
ARGV_OPTION_HYBRID_EQUAL|ARGV_OPTION_HYBRID_COMMA,
|
|
|
8afddf |
"members",0,
|
|
|
8afddf |
"print out information pertaining to each archive file "
|
|
|
8afddf |
"and its various internal elements"},
|
|
|
8afddf |
|
|
|
8afddf |
{"Wpretty", 0,TAG_AR_PRETTY,ARGV_OPTARG_REQUIRED,
|
|
|
8afddf |
ARGV_OPTION_HYBRID_EQUAL,
|
|
|
8afddf |
"posix|yaml|hexdata",0,
|
|
|
8afddf |
"select the pretty printer to be used: "
|
|
|
8afddf |
"'posix' for ar(1) compatible output; "
|
|
|
8afddf |
"'yaml' for yaml-formatted data; and "
|
|
|
8afddf |
"'hexdata' for yaml-formatted data with additional "
|
|
|
8afddf |
"hexdump output"},
|
|
|
af36ce |
|
|
|
11f3c7 |
{0,0,0,0,0,0,0,0}
|
|
|
11f3c7 |
};
|