From: Eric Biggers Date: Tue, 24 Dec 2013 00:09:02 +0000 (-0600) Subject: wimoptimize: Add --pack-streams option X-Git-Tag: v1.6.0~125 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=7bac2f53ecca0fe8d6f9e55a9bf8f86512256660 wimoptimize: Add --pack-streams option --- diff --git a/programs/imagex.c b/programs/imagex.c index c280bf33..b0f62834 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -292,6 +292,7 @@ static const struct option optimize_options[] = { {T("compress-slow"), no_argument, NULL, IMAGEX_COMPRESS_SLOW_OPTION}, {T("recompress-slow"), no_argument, NULL, IMAGEX_COMPRESS_SLOW_OPTION}, {T("chunk-size"), required_argument, NULL, IMAGEX_CHUNK_SIZE_OPTION}, + {T("pack-streams"),no_argument, NULL, IMAGEX_PACK_STREAMS_OPTION}, {T("threads"), required_argument, NULL, IMAGEX_THREADS_OPTION}, {T("pipable"), no_argument, NULL, IMAGEX_PIPABLE_OPTION}, {T("not-pipable"), no_argument, NULL, IMAGEX_NOT_PIPABLE_OPTION}, @@ -3318,6 +3319,10 @@ imagex_optimize(int argc, tchar **argv, int cmd) if (chunk_size == UINT32_MAX) goto out_err; break; + case IMAGEX_PACK_STREAMS_OPTION: + write_flags |= WIMLIB_WRITE_FLAG_PACK_STREAMS; + write_flags |= WIMLIB_WRITE_FLAG_RECOMPRESS; + break; case IMAGEX_THREADS_OPTION: num_threads = parse_num_threads(optarg); if (num_threads == UINT_MAX)