|
|
88751e |
#include "tpax_driver_impl.h"
|
|
|
88751e |
#include "argv/argv.h"
|
|
|
88751e |
|
|
|
88751e |
const struct argv_option tpax_default_options[] = {
|
|
|
88751e |
{"version", 0,TAG_VERSION,ARGV_OPTARG_NONE,0,0,0,
|
|
|
88751e |
"show version information"},
|
|
|
88751e |
|
|
|
88751e |
{"help", 0,TAG_HELP,ARGV_OPTARG_OPTIONAL,0,"short|long",0,
|
|
|
88751e |
"show usage information [listing %s options only]"},
|
|
|
88751e |
|
|
|
893ea2 |
{"list", 0,TAG_LIST,ARGV_OPTARG_NONE,0,0,0,
|
|
|
893ea2 |
"list mode (output names of archive members"},
|
|
|
893ea2 |
|
|
|
893ea2 |
{"read", 'r',TAG_READ,ARGV_OPTARG_NONE,0,0,0,
|
|
|
893ea2 |
"read mode (extract matching archive members"},
|
|
|
893ea2 |
|
|
|
893ea2 |
{"write", 'w',TAG_WRITE,ARGV_OPTARG_NONE,0,0,0,
|
|
|
893ea2 |
"write mode (add specified files to archive"},
|
|
|
893ea2 |
|
|
|
893ea2 |
{"copy", 0,TAG_COPY,ARGV_OPTARG_NONE,0,0,0,
|
|
|
893ea2 |
"copy mode (copy specified files "
|
|
|
893ea2 |
"to a specified destination directory)"},
|
|
|
893ea2 |
|
|
|
8aa3fc |
|
|
|
8aa3fc |
{"format", 'x',TAG_FORMAT,ARGV_OPTARG_REQUIRED,0,
|
|
|
8aa3fc |
"pax|cpio|ustar|rustar",0,
|
|
|
8aa3fc |
"archive format [%s]"},
|
|
|
8aa3fc |
|
|
|
54c29f |
{"blksize", 'b',TAG_BLKSIZE,ARGV_OPTARG_REQUIRED,0,0,0,
|
|
|
54c29f |
"(non-default) block-size; valid values are "
|
|
|
54c29f |
"in the range of 512 to 32256; keeping "
|
|
|
54c29f |
"the default format-specific block size "
|
|
|
54c29f |
"(5120 for the pax and cpio formats,"
|
|
|
54c29f |
" 10240 for the ustar format) "
|
|
|
54c29f |
"is strongly recommended."},
|
|
|
54c29f |
|
|
|
23fa88 |
{"recurse", 0,TAG_RECURSE,ARGV_OPTARG_NONE,0,0,0,
|
|
|
23fa88 |
"recurse into directory archive members "
|
|
|
23fa88 |
"(this is the tpax_main() default)"},
|
|
|
23fa88 |
|
|
|
23fa88 |
{"no-recurse", 'd',TAG_NORECURSE,ARGV_OPTARG_NONE,0,0,0,
|
|
|
23fa88 |
"do not recurse into directory archive members"},
|
|
|
23fa88 |
|
|
|
88751e |
{0,0,0,0,0,0,0,0}
|
|
|
88751e |
};
|