xz: Make --single-stream imply --keep

Suggested by xx on #tukaani on 2024-04-12.
This commit is contained in:
Lasse Collin 2025-01-04 20:02:18 +02:00
parent 6f412814a8
commit 35df4c2bc0
No known key found for this signature in database
GPG Key ID: 38EE757D69184620
2 changed files with 11 additions and 1 deletions

View File

@ -612,6 +612,9 @@ parse_real(args_info *args, int argc, char **argv)
case OPT_SINGLE_STREAM:
opt_single_stream = true;
// Since 5.7.1alpha --single-stream implies --keep.
opt_keep_original = true;
break;
case OPT_NO_SPARSE:

View File

@ -4,7 +4,7 @@
.\" Authors: Lasse Collin
.\" Jia Tan
.\"
.TH XZ 1 "2024-12-30" "Tukaani" "XZ Utils"
.TH XZ 1 "2025-01-04" "Tukaani" "XZ Utils"
.
.SH NAME
xz, unxz, xzcat, lzma, unlzma, lzcat \- Compress or decompress .xz and .lzma files
@ -497,6 +497,13 @@ This option has no effect if the operation mode is not
.B \-\-decompress
or
.BR \-\-test .
.IP ""
Since
.B xz
5.7.1alpha,
.B \-\-single\-stream
implies
.BR \-\-keep .
.TP
.B \-\-no\-sparse
Disable creation of sparse files.