mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 04:27:45 +00:00
fmt: simplify short help message
This commit is contained in:
parent
acef6419c3
commit
a46e23c186
1 changed files with 1 additions and 4 deletions
|
@ -217,10 +217,7 @@ pub fn uumain(args: Vec<String>) -> int {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn print_usage(arg0: &str, opts: &[getopts::OptGroup], errmsg: &str) {
|
fn print_usage(arg0: &str, opts: &[getopts::OptGroup], errmsg: &str) {
|
||||||
let short_usage = getopts::short_usage(arg0, opts);
|
println!("Usage: {} [OPTION]... [FILE]...\n\n{}{}", arg0, getopts::usage("Reformat paragraphs from input files (or stdin) to stdout.", opts), errmsg);
|
||||||
println!("{}", short_usage.as_slice().slice_to(60));
|
|
||||||
print!(" {}", short_usage.as_slice().slice_from(60));
|
|
||||||
println!("\n\n{}{}", getopts::usage("Reformat paragraphs from input files (or stdin) to stdout.", opts), errmsg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// uniform interface for opening files
|
// uniform interface for opening files
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue