1
Fork 0
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:
Aleksandar Janicijevic 2021-04-01 02:53:48 -04:00 committed by GitHub
parent 7669a4387a
commit cf4970f083
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

6
Cargo.lock generated
View file

@ -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]]

View file

@ -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;
} }