Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: Backticks
Lorenz Leutgeb committed 6 months ago
commit 5e5b61b2109bdd140adbd49b0f3f7150861252f4
parent fe3a3fa806cc5a2c1ee086f549a1cc7cf87e319e
1 file changed +11 -11
modified crates/radicle-cli/src/commands/patch/args.rs
@@ -319,7 +319,7 @@ pub(super) struct CommentArgs {

    /// The comment to edit
    ///
-
    /// Use --message to edit with the provided message
+
    /// Use `--message` to edit with the provided message
    #[arg(
        long,
        value_name = "COMMENT_ID",
@@ -330,9 +330,9 @@ pub(super) struct CommentArgs {

    /// The comment to react to
    ///
-
    /// Use --emoji for the character to react with
+
    /// Use `--emoji` for the character to react with
    ///
-
    /// Use --undo with --emoji to remove the reaction
+
    /// Use `--undo` with `--emoji` to remove the reaction
    #[arg(
        long,
        value_name = "COMMENT_ID",
@@ -354,7 +354,7 @@ pub(super) struct CommentArgs {

    /// The emoji to react with
    ///
-
    /// Requires using '--react <COMMENT_ID>'
+
    /// Requires using `--react <COMMENT_ID>`
    #[arg(long, requires = "reaction")]
    emoji: Option<radicle::cob::Reaction>,

@@ -364,7 +364,7 @@ pub(super) struct CommentArgs {

    /// Remove the reaction
    ///
-
    /// Requires using '--react <COMMENT_ID> --emoji <EMOJI>'
+
    /// Requires using `--react <COMMENT_ID> --emoji <EMOJI>`
    #[arg(long, requires = "reaction")]
    undo: bool,
}
@@ -427,7 +427,7 @@ impl From<CommentArgs> for CommentAction {
                message: Message::from(message),
                reply_to,
            },
-
            _ => unreachable!("--edit, --react, and --redact cannot be used together'"),
+
            _ => unreachable!("`--edit`, `--react`, and `--redact` cannot be used together"),
        }
    }
}
@@ -630,7 +630,7 @@ impl ReviewArgs {
            });
        }

-
        panic!("expected one of --patch, --delete, --accept, or --reject");
+
        panic!("expected one of `--patch`, `--delete`, `--accept`, or `--reject`");
    }
}

@@ -717,13 +717,13 @@ impl From<CheckoutArgs> for checkout::Options {
pub(super) struct AssignArgs {
    /// Add an assignee to the patch (may be specified multiple times).
    ///
-
    /// Note: --add will take precedence over --delete
+
    /// Note: `--add` will take precedence over `--delete`
    #[arg(long, short, value_name = "DID", num_args = 1.., action = clap::ArgAction::Append)]
    pub(super) add: Vec<Did>,

    /// Remove an assignee from the patch (may be specified multiple times).
    ///
-
    /// Note: --add will take precedence over --delete
+
    /// Note: `--add` will take precedence over `--delete`
    #[clap(long, short, value_name = "DID", num_args = 1.., action = clap::ArgAction::Append)]
    pub(super) delete: Vec<Did>,
}
@@ -733,13 +733,13 @@ pub(super) struct AssignArgs {
pub(super) struct LabelArgs {
    /// Add a label to the patch (may be specified multiple times).
    ///
-
    /// Note: --add will take precedence over --delete
+
    /// Note: `--add` will take precedence over `--delete`
    #[arg(long, short, value_name = "LABEL", num_args = 1.., action = clap::ArgAction::Append)]
    pub(super) add: Vec<Label>,

    /// Remove an assignee from the patch (may be specified multiple times).
    ///
-
    /// Note: --add will take precedence over --delete
+
    /// Note: `--add` will take precedence over `--delete`
    #[clap(long, short, value_name = "LABEL", num_args = 1.., action = clap::ArgAction::Append)]
    pub(super) delete: Vec<Label>,
}