Compression cli error message in same style as parsing

This commit is contained in:
Riyyi
2026-08-02 03:53:36 +02:00
parent 1647b2b17b
commit 7612c99722
+7 -4
View File
@@ -24,10 +24,13 @@ parse :: proc() -> Options {
}
if opts.compression > 12 {
fmt.eprintln(
"error: compression higher than allowed maximum:",
opts.compression,
)
err: flags.Error = flags.Validation_Error {
message = fmt.tprintf(
`Invalid compression "%d". Compression higher than allowed maximum.`,
opts.compression,
),
}
flags.print_errors(typeid_of(Options), err, os.args[0], .Unix)
os.exit(1)
}