1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Various long options for GNU cpio compat.

This commit is contained in:
Tim Kientzle 2008-06-21 02:18:52 +00:00
parent 152e214a9a
commit 00e3ab6e67
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179905

View File

@ -82,12 +82,20 @@ static const char *cpio_opts = "AaBC:F:O:cdE:f:H:hijLlmopR:rtuvW:yZz";
* sorted, as the -W logic below relies on it. * sorted, as the -W logic below relies on it.
*/ */
static const struct option cpio_longopts[] = { static const struct option cpio_longopts[] = {
{ "create", no_argument, NULL, 'o' },
{ "extract", no_argument, NULL, 'i' },
{ "file", required_argument, NULL, 'F' }, { "file", required_argument, NULL, 'F' },
{ "format", required_argument, NULL, 'H' }, { "format", required_argument, NULL, 'H' },
{ "help", no_argument, NULL, 'h' }, { "help", no_argument, NULL, 'h' },
{ "insecure", no_argument, NULL, OPTION_INSECURE }, { "insecure", no_argument, NULL, OPTION_INSECURE },
{ "link", no_argument, NULL, 'l' },
{ "list", no_argument, NULL, 't' },
{ "make-directories", no_argument, NULL, 'd' },
{ "owner", required_argument, NULL, 'R' }, { "owner", required_argument, NULL, 'R' },
{ "pass-through", no_argument, NULL, 'p' },
{ "preserve-modification-time", no_argument, NULL, 'm' },
{ "quiet", no_argument, NULL, OPTION_QUIET }, { "quiet", no_argument, NULL, OPTION_QUIET },
{ "unconditional", no_argument, NULL, 'u' },
{ "verbose", no_argument, NULL, 'v' }, { "verbose", no_argument, NULL, 'v' },
{ "version", no_argument, NULL, OPTION_VERSION }, { "version", no_argument, NULL, OPTION_VERSION },
{ NULL, 0, NULL, 0 } { NULL, 0, NULL, 0 }