cp: remove empty line from version output

This commit is contained in:
Daniel Hofstetter 2023-01-18 10:20:17 +01:00
parent fb1ee80837
commit 3489647407

View file

@ -552,7 +552,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
clap::error::ErrorKind::DisplayHelp => {
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))),
};
} else if let Ok(matches) = matches {