mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
pass params directly to show_error macro
This commit is contained in:
parent
5ddb9d0e3c
commit
5541e6674b
1 changed files with 1 additions and 2 deletions
|
@ -74,8 +74,7 @@ fn main() {
|
||||||
let matches = match getopts(args.tail(), opts) {
|
let matches = match getopts(args.tail(), opts) {
|
||||||
Ok(m) => m,
|
Ok(m) => m,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
let msg = format!("{}\n{}", e.to_err_msg(), get_help_text(NAME, usage));
|
show_error!(EXIT_ERR, "{}\n{}", e.to_err_msg(), get_help_text(NAME, usage));
|
||||||
show_error!(EXIT_ERR, "{}", msg);
|
|
||||||
return
|
return
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue