Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
cli: Fix argument value names in `auth` and `init`
Merged did:key:z6MkgFq6...nBGz opened 6 months ago

We decided to use the value names to indicate which type the value is parsed into (instead of just saying that the value is a STRING).

This makes the value names consistent with other commands again.

2 files changed +4 -4 27a85987 27a85987
modified crates/radicle-cli/src/commands/auth/args.rs
@@ -12,7 +12,7 @@ methods disables the passphrase prompt.
#[command(about = ABOUT, long_about = LONG_ABOUT, disable_version_flag = true)]
pub struct Args {
    /// When initializing an identity, sets the node alias
-
    #[arg(long, value_name = "STRING")]
+
    #[arg(long)]
    pub alias: Option<Alias>,

    /// Read passphrase from stdin
modified crates/radicle-cli/src/commands/init/args.rs
@@ -16,13 +16,13 @@ pub struct Args {
    /// Directory to be initialized
    pub(super) path: Option<PathBuf>,
    /// Name of the repository
-
    #[arg(long, value_name = "STRING")]
+
    #[arg(long)]
    pub(super) name: Option<ProjectName>,
    /// Description of the repository
-
    #[arg(long, value_name = "STRING")]
+
    #[arg(long)]
    pub(super) description: Option<String>,
    /// The default branch of the repository
-
    #[arg(long = "default-branch", value_name = "STRING")]
+
    #[arg(long = "default-branch")]
    pub(super) branch: Option<String>,
    /// Repository follow scope
    #[arg(