diff options
author | Werner Koch <wk@gnupg.org> | 2023-06-15 13:58:35 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2023-06-15 13:59:16 +0200 |
commit | 2178f35dffdc0d0129ad1da2e34ba243d7869378 (patch) | |
tree | dd82300ea48009d0b7a3b1d587a1ac2e0fd61c49 /g10/gpg.c | |
parent | gpgsm: New option --input-size-hint. (diff) | |
download | gnupg2-2178f35dffdc0d0129ad1da2e34ba243d7869378.tar.xz gnupg2-2178f35dffdc0d0129ad1da2e34ba243d7869378.zip |
gpg: New option --no-compress as alias for -z0.
Diffstat (limited to '')
-rw-r--r-- | g10/gpg.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -259,6 +259,7 @@ enum cmd_and_opt_values oCipherAlgo, oDigestAlgo, oCertDigestAlgo, + oNoCompress, oCompressAlgo, oCompressLevel, oBZ2CompressLevel, @@ -697,6 +698,7 @@ static gpgrt_opt_t opts[] = { ARGPARSE_s_n (oLockOnce, "lock-once", "@"), ARGPARSE_s_n (oLockMultiple, "lock-multiple", "@"), ARGPARSE_s_n (oLockNever, "lock-never", "@"), + ARGPARSE_s_n (oNoCompress, "no-compress", "@"), ARGPARSE_s_s (oCompressAlgo,"compress-algo", "@"), ARGPARSE_s_s (oCompressAlgo, "compression-algo", "@"), /* Alias */ ARGPARSE_s_n (oBZ2DecompressLowmem, "bzip2-decompress-lowmem", "@"), @@ -3238,6 +3240,11 @@ main (int argc, char **argv) opt.compress_level = opt.bz2_compress_level = pargs.r.ret_int; opt.explicit_compress_option = 1; break; + case oNoCompress: + /* --no-compress is the same as -z0 */ + opt.compress_level = opt.bz2_compress_level = 0; + opt.explicit_compress_option = 1; + break; case oCompressLevel: opt.compress_level = pargs.r.ret_int; break; case oBZ2CompressLevel: opt.bz2_compress_level = pargs.r.ret_int; break; case oBZ2DecompressLowmem: opt.bz2_decompress_lowmem=1; break; |