chore: colorise the colon in help messages
This commit is contained in:
parent
febb5aedfe
commit
786b75bf1a
10
src/main.rs
10
src/main.rs
|
@ -52,7 +52,7 @@ fn vaporise() -> Result<()> {
|
||||||
println!("{}: no arguments passed", "error".red().bold());
|
println!("{}: no arguments passed", "error".red().bold());
|
||||||
println!(
|
println!(
|
||||||
"{}: try 'vpr -h' for more information",
|
"{}: try 'vpr -h' for more information",
|
||||||
"note".cyan().bold()
|
"note:".cyan().bold()
|
||||||
);
|
);
|
||||||
process::exit(0);
|
process::exit(0);
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@ fn vaporise() -> Result<()> {
|
||||||
|
|
||||||
for target in args.targets.iter() {
|
for target in args.targets.iter() {
|
||||||
if !args.no_preserve && (target == "/" || target == "~") {
|
if !args.no_preserve && (target == "/" || target == "~") {
|
||||||
println!("{}: you're trying to delete an important directory ({})! specify '{}' if you really want to do this", "error".red().bold(), "--no-preserve".yellow(), target);
|
println!("{} you're trying to delete an important directory ({})! specify '{}' if you really want to do this", "error:".red().bold(), "--no-preserve".yellow(), target);
|
||||||
process::exit(0);
|
process::exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,8 +81,8 @@ fn vaporise() -> Result<()> {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
println!(
|
println!(
|
||||||
"{}: the specified target does not exist: {}",
|
"{} the specified target does not exist: {}",
|
||||||
"error".red().bold(),
|
"error:".red().bold(),
|
||||||
target.yellow()
|
target.yellow()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -93,6 +93,6 @@ fn vaporise() -> Result<()> {
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
if let Err(error) = vaporise() {
|
if let Err(error) = vaporise() {
|
||||||
println!("{}: {:?}", "error".red().bold(), error);
|
println!("{} {:?}", "error:".red().bold(), error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue