Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: Consistently name ID argument ISSUE_ID
Lorenz Leutgeb committed 7 months ago
commit 6bd1e30120e1b10fa9cd51fe706796b98eef0852
parent f9dcbd023071c1b949591f52f6f795fb25c9b03e
1 file changed +10 -3
modified crates/radicle-cli/src/commands/issue/args.rs
@@ -116,6 +116,7 @@ pub(crate) enum Command {
    /// Add or delete labels from an issue
    Label {
        /// ID of the issue
+
        #[arg(value_name = "ISSUE_ID")]
        id: Rev,

        /// Add an assignee (may be specified multiple times)
@@ -174,6 +175,7 @@ pub(crate) enum Command {
    /// Show a specific issue
    Show {
        /// ID of the issue
+
        #[arg(value_name = "ISSUE_ID")]
        id: Rev,
    },
    /// Transition the state of an issue
@@ -262,6 +264,7 @@ impl From<ListArgs> for Option<State> {
#[derive(Parser, Debug)]
pub(crate) struct CommentArgs {
    /// ID of the issue
+
    #[arg(value_name = "ISSUE_ID")]
    id: Rev,

    /// The body of the comment
@@ -291,17 +294,20 @@ impl CommentArgs {
}

/// The action that should be performed based on the supplied [`CommentArgs`].
+
#[derive(Parser, Debug)]
pub(crate) enum CommentAction {
    /// Comment to the main issue thread.
    Comment {
-
        /// The issue ID
+
        /// ID of the issue
+
        #[arg(value_name = "ISSUE_ID")]
        id: Rev,
        /// The message of the comment.
        message: Message,
    },
    /// Reply to a specific comment in the issue.
    Reply {
-
        /// The issue ID
+
        /// ID of the issue
+
        #[arg(value_name = "ISSUE_ID")]
        id: Rev,
        /// The message that is being used to reply to the comment.
        message: Message,
@@ -310,7 +316,8 @@ pub(crate) enum CommentAction {
    },
    /// Edit a specific comment in the issue.
    Edit {
-
        /// The issue ID
+
        /// ID of the issue
+
        #[arg(value_name = "ISSUE_ID")]
        id: Rev,
        /// The message that is being used to edit the comment.
        message: Message,