mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
shred: Replaced eprintln with show_error (#1992)
This commit is contained in:
parent
7669a4387a
commit
cf4970f083
2 changed files with 7 additions and 7 deletions
6
Cargo.lock
generated
6
Cargo.lock
generated
|
@ -2323,9 +2323,9 @@ dependencies = [
|
||||||
name = "uu_tac"
|
name = "uu_tac"
|
||||||
version = "0.0.4"
|
version = "0.0.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap 2.33.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
"clap",
|
||||||
"uucore 0.0.7",
|
"uucore",
|
||||||
"uucore_procs 0.0.5",
|
"uucore_procs",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
|
@ -329,8 +329,8 @@ this is the default for non-regular files",
|
||||||
let mut errs: Vec<String> = vec![];
|
let mut errs: Vec<String> = vec![];
|
||||||
|
|
||||||
if !matches.is_present(options::FILE) {
|
if !matches.is_present(options::FILE) {
|
||||||
eprintln!("{}: Missing an argument", NAME);
|
show_error!("Missing an argument");
|
||||||
eprintln!("For help, try '{} --help'", NAME);
|
show_error!("For help, try '{} --help'", NAME);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -367,9 +367,9 @@ this is the default for non-regular files",
|
||||||
let verbose = matches.is_present(options::VERBOSE);
|
let verbose = matches.is_present(options::VERBOSE);
|
||||||
|
|
||||||
if !errs.is_empty() {
|
if !errs.is_empty() {
|
||||||
eprintln!("Invalid arguments supplied.");
|
show_error!("Invalid arguments supplied.");
|
||||||
for message in errs {
|
for message in errs {
|
||||||
eprintln!("{}", message);
|
show_error!("{}", message);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue