mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-15 07:40:36 +08:00
Fix rad --version output
Write `rad --version` on its own line.
This commit is contained in:
@@ -68,9 +68,9 @@ fn parse_args() -> anyhow::Result<Command> {
|
||||
/// Third party applications use it to parse Radicle Cli's version.
|
||||
fn print_version(mut w: impl std::io::Write) -> anyhow::Result<()> {
|
||||
if VERSION.contains("-dev") {
|
||||
write!(w, "{NAME} {VERSION}+{GIT_HEAD}")?;
|
||||
writeln!(w, "{NAME} {VERSION}+{GIT_HEAD}")?;
|
||||
} else {
|
||||
write!(w, "{NAME} {VERSION} ({GIT_HEAD})")?;
|
||||
writeln!(w, "{NAME} {VERSION} ({GIT_HEAD})")?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user