Fix `rad --version` output
Write `rad --version` on its own line.
This commit is contained in:
parent
f26adabdbf
commit
bd04826223
|
|
@ -68,9 +68,9 @@ fn parse_args() -> anyhow::Result<Command> {
|
||||||
/// Third party applications use it to parse Radicle Cli's version.
|
/// Third party applications use it to parse Radicle Cli's version.
|
||||||
fn print_version(mut w: impl std::io::Write) -> anyhow::Result<()> {
|
fn print_version(mut w: impl std::io::Write) -> anyhow::Result<()> {
|
||||||
if VERSION.contains("-dev") {
|
if VERSION.contains("-dev") {
|
||||||
write!(w, "{NAME} {VERSION}+{GIT_HEAD}")?;
|
writeln!(w, "{NAME} {VERSION}+{GIT_HEAD}")?;
|
||||||
} else {
|
} else {
|
||||||
write!(w, "{NAME} {VERSION} ({GIT_HEAD})")?;
|
writeln!(w, "{NAME} {VERSION} ({GIT_HEAD})")?;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue