aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/cpio
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2008-06-21 02:18:52 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2008-06-21 02:18:52 +0000
commit00e3ab6e6744baeaabe3ffd4ad57f184b4bd52aa (patch)
tree4113dfe36c7c3c2d06ac435ecba60802a801be2b /usr.bin/cpio
parent152e214a9a66ee274f3d26344a30672970dd3c32 (diff)
downloadsrc-00e3ab6e6744baeaabe3ffd4ad57f184b4bd52aa.tar.gz
src-00e3ab6e6744baeaabe3ffd4ad57f184b4bd52aa.zip
Various long options for GNU cpio compat.
Notes
Notes: svn path=/head/; revision=179905
Diffstat (limited to 'usr.bin/cpio')
-rw-r--r--usr.bin/cpio/cmdline.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.bin/cpio/cmdline.c b/usr.bin/cpio/cmdline.c
index 4b3372792711..81912e9fc5af 100644
--- a/usr.bin/cpio/cmdline.c
+++ b/usr.bin/cpio/cmdline.c
@@ -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.
*/
static const struct option cpio_longopts[] = {
+ { "create", no_argument, NULL, 'o' },
+ { "extract", no_argument, NULL, 'i' },
{ "file", required_argument, NULL, 'F' },
{ "format", required_argument, NULL, 'H' },
{ "help", no_argument, NULL, 'h' },
{ "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' },
+ { "pass-through", no_argument, NULL, 'p' },
+ { "preserve-modification-time", no_argument, NULL, 'm' },
{ "quiet", no_argument, NULL, OPTION_QUIET },
+ { "unconditional", no_argument, NULL, 'u' },
{ "verbose", no_argument, NULL, 'v' },
{ "version", no_argument, NULL, OPTION_VERSION },
{ NULL, 0, NULL, 0 }