summaryrefslogtreecommitdiff
path: root/tar/cmdline.c
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2009-01-31 01:31:15 -0500
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2009-01-31 01:31:15 -0500
commitc25e0da2e8d6091bea7ff1c86940808a0bd79eef (patch)
treed6343a586ef9157026ab8cccfe3ac2b9b8a26b60 /tar/cmdline.c
parent0c4a6ac2747acd743044720e5e23f024e1127894 (diff)
downloadlibarchive-c25e0da2e8d6091bea7ff1c86940808a0bd79eef.tar.gz
Add support xz format and compressing lzma format.
SVN-Revision: 521
Diffstat (limited to 'tar/cmdline.c')
-rw-r--r--tar/cmdline.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tar/cmdline.c b/tar/cmdline.c
index ad8b487a..c24b3d54 100644
--- a/tar/cmdline.c
+++ b/tar/cmdline.c
@@ -46,7 +46,7 @@ __FBSDID("$FreeBSD$");
* Short options for tar. Please keep this sorted.
*/
static const char *short_options
- = "Bb:C:cf:HhI:jkLlmnOoPpqrSs:T:tUuvW:wX:xyZz";
+ = "Bb:C:cf:HhI:JjkLlmnOoPpqrSs:T:tUuvW:wX:xyZz";
/*
* Long options for tar. Please keep this list sorted.
@@ -93,6 +93,7 @@ static struct option {
{ "keep-newer-files", 0, OPTION_KEEP_NEWER_FILES },
{ "keep-old-files", 0, 'k' },
{ "list", 0, 't' },
+ { "lzma", 0, 'J' },
{ "modification-time", 0, 'm' },
{ "newer", 1, OPTION_NEWER_CTIME },
{ "newer-ctime", 1, OPTION_NEWER_CTIME },
@@ -122,6 +123,7 @@ static struct option {
{ "use-compress-program", 1, OPTION_USE_COMPRESS_PROGRAM },
{ "verbose", 0, 'v' },
{ "version", 0, OPTION_VERSION },
+ { "xz", 0, OPTION_XZ },
{ NULL, 0, 0 }
};