Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/bin/brotli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -852,13 +852,15 @@ fn main() {
}
panic!("Unknown Argument {:}", argument);
}
if params.bare_stream && !params.appendable {
// -catable implies -appendable, but SanitizeParams only derives that later
let concatenable = params.appendable || params.catable;
if params.bare_stream && !concatenable {
println_stderr!("bare streams only supported when catable or appendable!");
return;
std::process::exit(1);
}
if params.byte_align && !params.appendable {
if params.byte_align && !concatenable {
println_stderr!("byte aligned streams only supported when catable or appendable!");
return;
std::process::exit(1);
}
if filenames[0] != "" {
let mut input = match File::open(Path::new(&filenames[0])) {
Expand Down