Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: use NID[@ADDR]
Fintan Halpenny committed 6 months ago
commit 63c0b179282ca396eecf14d26b656dbaa4ce3678
parent a5b3c43f6ca89e5830f40cb67adfc074b6999d92
1 file changed +3 -2
modified crates/radicle-cli/src/commands/node/args.rs
@@ -31,7 +31,7 @@ pub(super) enum Addr {

#[derive(Error, Debug)]
pub(super) enum AddrParseError {
-
    #[error("{0}, expected <nid> or <nid>@<addr>")]
+
    #[error("{0}, expected <NID> or <NID>@<ADDR>")]
    PeerAddr(#[from] PeerAddrParseError<PublicKey>),
    #[error(transparent)]
    NodeId(#[from] PublicKeyError),
@@ -100,7 +100,8 @@ impl clap::builder::TypedValueParser for OnlyParser {
pub(super) enum Command {
    /// Instruct the node to connect to another node
    Connect {
-
        /// Address of the node to connect to
+
        /// The Node ID, and optionally the address and port, of the node to connect to
+
        #[arg(value_name = "NID[@ADDR]")]
        addr: Addr,

        /// How long to wait for the connection to be established