diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-10-21 17:05:28 +0900 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-10-22 19:57:20 +0900 |
commit | d06fc9e5e4a47d022188d4b10202873c5d995b6e (patch) | |
tree | 759c5fc5ec8e4a5fc1b35e8867ecb160100596d8 /tar/cmdline.c | |
parent | 877654feb4ebc4cfd3da33fb0582d1147a21e6d1 (diff) | |
download | libarchive-d06fc9e5e4a47d022188d4b10202873c5d995b6e.tar.gz |
Introduce -a/--auto-compress option into bsdtar.
This automatically decides on a creation format and filters by
the archive suffix.
Diffstat (limited to 'tar/cmdline.c')
-rw-r--r-- | tar/cmdline.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tar/cmdline.c b/tar/cmdline.c index e658ec86..659ae954 100644 --- a/tar/cmdline.c +++ b/tar/cmdline.c @@ -47,7 +47,7 @@ __FBSDID("$FreeBSD$"); * Short options for tar. Please keep this sorted. */ static const char *short_options - = "Bb:C:cf:HhI:JjkLlmnOoPpqrSs:T:tUuvW:wX:xyZz"; + = "aBb:C:cf:HhI:JjkLlmnOoPpqrSs:T:tUuvW:wX:xyZz"; /* * Long options for tar. Please keep this list sorted. @@ -65,6 +65,7 @@ static const struct bsdtar_option { } tar_longopts[] = { { "absolute-paths", 0, 'P' }, { "append", 0, 'r' }, + { "auto-compress", 0, 'a' }, { "b64encode", 0, OPTION_B64ENCODE }, { "block-size", 1, 'b' }, { "bunzip2", 0, 'j' }, |