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:
parent
a1017a24dd
commit
28e00cbd78
26 changed files with 56 additions and 55 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue