1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-17 10:41:03 +00:00

Standardize display of utility name and version.

This commit is contained in:
Joseph Crail 2015-05-25 14:50:15 -04:00
parent a1017a24dd
commit 28e00cbd78
26 changed files with 56 additions and 55 deletions

View file

@ -42,7 +42,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
};
if matches.opt_present("h") {
let msg = format!("{0} v{1}
let msg = format!("{0} {1}
Usage:
{0} [OPTION]... [INPUT [PREFIX]]
@ -56,7 +56,7 @@ size is 1000, and default PREFIX is 'x'. With no INPUT, or when INPUT is
}
if matches.opt_present("V") {
println!("{} v{}", NAME, VERSION);
println!("{} {}", NAME, VERSION);
return 0;
}