Skip to content

Commit

Permalink
Add --no-discord for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyyyylime committed Sep 4, 2024
1 parent f0a7bc0 commit 96ff629
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ struct Args {
#[clap(short, long)]
discord: bool,

/// Wrap the output in a Discord-flavoured-markdown–style ANSI codeblock.
#[clap(short, long, overrides_with = "_no_discord")]
discord: bool,

/// Don't wrap the output in a markdown-style codeblock. [default]
#[clap(short = 'D', long = "no-discord")]
#[clap(hide_short_help = true)]
#[doc(hidden)]
_no_discord: bool,

// Logically this comes after `Args::strip_ansi`, but in clap it makes more sense before.
// Also see https://jwodder.github.io/kbits/posts/clap-bool-negate/
/// Strip all ANSI escape sequences from the input before processing. [default]
Expand Down

0 comments on commit 96ff629

Please sign in to comment.