aboutsummaryrefslogtreecommitdiff
path: root/src/xz/args.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2011-03-18 19:10:30 +0200
committerLasse Collin <lasse.collin@tukaani.org>2011-03-18 19:10:30 +0200
commit923b22483bd9356f3219b2b784d96f455f4dc499 (patch)
tree76cfdf92dedc83e3e344207f9efc7d6281e559b7 /src/xz/args.c
parentxz: Add --single-stream. (diff)
downloadxz-923b22483bd9356f3219b2b784d96f455f4dc499.tar.xz
xz: Add --block-size=SIZE.
This uses LZMA_FULL_FLUSH every SIZE bytes of input. Man page wasn't updated yet.
Diffstat (limited to 'src/xz/args.c')
-rw-r--r--src/xz/args.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xz/args.c b/src/xz/args.c
index 1a357b24..f207e7f4 100644
--- a/src/xz/args.c
+++ b/src/xz/args.c
@@ -72,6 +72,7 @@ parse_real(args_info *args, int argc, char **argv)
OPT_NO_SPARSE,
OPT_FILES,
OPT_FILES0,
+ OPT_BLOCK_SIZE,
OPT_MEM_COMPRESS,
OPT_MEM_DECOMPRESS,
OPT_NO_ADJUST,
@@ -105,6 +106,7 @@ parse_real(args_info *args, int argc, char **argv)
// Basic compression settings
{ "format", required_argument, NULL, 'F' },
{ "check", required_argument, NULL, 'C' },
+ { "block-size", required_argument, NULL, OPT_BLOCK_SIZE },
{ "memlimit-compress", required_argument, NULL, OPT_MEM_COMPRESS },
{ "memlimit-decompress", required_argument, NULL, OPT_MEM_DECOMPRESS },
{ "memlimit", required_argument, NULL, 'M' },
@@ -370,6 +372,11 @@ parse_real(args_info *args, int argc, char **argv)
break;
}
+ case OPT_BLOCK_SIZE:
+ opt_block_size = str_to_uint64("block-size", optarg,
+ 0, LZMA_VLI_MAX);
+ break;
+
case OPT_SINGLE_STREAM:
opt_single_stream = true;
break;