mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge pull request #4283 from cakebaker/cp_remove_empty_line_from_version_output
cp: remove empty line from version output
This commit is contained in:
commit
77fa199059
1 changed files with 1 additions and 1 deletions
|
@ -552,7 +552,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
clap::error::ErrorKind::DisplayHelp => {
|
clap::error::ErrorKind::DisplayHelp => {
|
||||||
app.print_help()?;
|
app.print_help()?;
|
||||||
}
|
}
|
||||||
clap::error::ErrorKind::DisplayVersion => println!("{}", app.render_version()),
|
clap::error::ErrorKind::DisplayVersion => print!("{}", app.render_version()),
|
||||||
_ => return Err(Box::new(e.with_exit_code(1))),
|
_ => return Err(Box::new(e.with_exit_code(1))),
|
||||||
};
|
};
|
||||||
} else if let Ok(matches) = matches {
|
} else if let Ok(matches) = matches {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue