Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix `rad --version` output
Slack Coder committed 3 years ago
commit bd0482622393556cdcdc32cfab7fdea4fbf64ab5
parent f26adabdbff401e14e174c2d8254c9178a41a7a8
1 file changed +2 -2
modified radicle-cli/src/main.rs
@@ -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(())
}