:: commit 72949c053d9cb4cbb2a17e5130a25018ced99c03

Kamila Szewczyk <kspalaiologos@gmail.com> — 2022-09-01 15:06

parents: d1ff1485fb

bz3cat works in serial mode, add a mention of -B in the manpage

diff --git a/bz3cat.in b/bz3cat.in
index 07197f3..9f3c5d6 100755
--- a/bz3cat.in
+++ b/bz3cat.in
@@ -6,4 +6,4 @@ case $1 in
 esac
 PATH=$bindir:$PATH
 
-exec bzip3 -cd "$@"
+exec bzip3 -Bcd "$@"
diff --git a/bzip3.1 b/bzip3.1
index c3492a9..bed2e31 100644
--- a/bzip3.1
+++ b/bzip3.1
@@ -4,7 +4,7 @@ bzip3 \- an efficient statistical file compressor and spiritual successor to bzi
 
 .SH SYNOPSIS
 .B bzip3
-.RB [ " \-bcdehftV " ]
+.RB [ " \-BbcdehftV " ]
 [
 .I "filenames \&..."
 ]
@@ -58,6 +58,18 @@ extension to the input filename.
 
 .SH OPTIONS
 .TP
+.B \-B --batch
+Enable batch mode. By default,
+.BR bzip3
+will error if more than two files are passed, and the two files specified
+are always treated as input and output. The batch mode makes
+.BR bzip3
+treat every file as input, so for example
+.I bzip3 -Bd *.bz3
+will decompress all
+.I .bz3
+files in the current directory.
+.TP
 .B \-b --block N
 Set the block size to N mebibytes. The minimum is 1MiB, the maximum is 511MiB.
 .TP
tab: 248 wrap: offon