Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Fix log output in `--help`
Alexis Sellier committed 3 years ago
commit a16be2451791e0798851ca67bc810854215c93f4
parent 26ee6d26dc19a9aa868eadf84f35e41b13dc83ab
1 file changed +3 -5
modified radicle-node/src/main.rs
@@ -29,7 +29,6 @@ Options
    --force                             Force start even if an existing control socket is found
    --help                              Print help
    --listen             <address>      Address to listen on
-

"#;

#[derive(Debug)]
@@ -134,14 +133,13 @@ impl Options {
fn execute() -> anyhow::Result<()> {
    logger::init(log::Level::Debug)?;

-
    log::info!(target: "node", "Starting node..");
-
    log::info!(target: "node", "Version {} ({})", env!("CARGO_PKG_VERSION"), env!("GIT_HEAD"));
-

    let options = Options::from_env()?;
-
    let home = profile::home()?;

+
    log::info!(target: "node", "Starting node..");
+
    log::info!(target: "node", "Version {} ({})", env!("CARGO_PKG_VERSION"), env!("GIT_HEAD"));
    log::info!(target: "node", "Unlocking node keystore..");

+
    let home = profile::home()?;
    let passphrase = term::io::passphrase(profile::env::RAD_PASSPHRASE)
        .context(format!("`{}` must be set", profile::env::RAD_PASSPHRASE))?;
    let keystore = Keystore::new(&home.keys());