Compression cli error message in same style as parsing
This commit is contained in:
+6
-3
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user