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
+6 -3
View File
@@ -24,10 +24,13 @@ parse :: proc() -> Options {
} }
if opts.compression > 12 { if opts.compression > 12 {
fmt.eprintln( err: flags.Error = flags.Validation_Error {
"error: compression higher than allowed maximum:", message = fmt.tprintf(
`Invalid compression "%d". Compression higher than allowed maximum.`,
opts.compression, opts.compression,
) ),
}
flags.print_errors(typeid_of(Options), err, os.args[0], .Unix)
os.exit(1) os.exit(1)
} }