Browse Source

darkirc: rename pubkey recovery argument

dasman 2 years ago
parent
commit
e87748f9c9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      bin/darkirc/src/main.rs

+ 3 - 3
bin/darkirc/src/main.rs

@@ -107,8 +107,8 @@ struct Args {
     gen_channel_secret: bool,
 
     /// Recover NaCl public key from a secret key
-    #[structopt(long)]
-    get_chacha_pubkey: Option<String>,
+    #[structopt(long = "get-chacha-pubkey")]
+    chacha_secret: Option<String>,
 
     /// Flag to skip syncing the DAG (no history).
     #[structopt(long)]
@@ -196,7 +196,7 @@ async fn realmain(args: Args, ex: Arc<Executor<'static>>) -> Result<()> {
         return Ok(())
     }
 
-    if let Some(chacha_secret) = args.get_chacha_pubkey {
+    if let Some(chacha_secret) = args.chacha_secret {
         let bytes = match bs58::decode(chacha_secret).into_vec() {
             Ok(v) => v,
             Err(e) => {