1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

pass params directly to show_error macro

This commit is contained in:
Maciej Dziardziel 2014-04-03 22:37:14 +01:00
parent 5ddb9d0e3c
commit 5541e6674b

View file

@ -74,8 +74,7 @@ fn main() {
let matches = match getopts(args.tail(), opts) {
Ok(m) => m,
Err(e) => {
let msg = format!("{}\n{}", e.to_err_msg(), get_help_text(NAME, usage));
show_error!(EXIT_ERR, "{}", msg);
show_error!(EXIT_ERR, "{}\n{}", e.to_err_msg(), get_help_text(NAME, usage));
return
},
};