refactor(cli): Clearer docs for -y/-n

This commit is contained in:
Pascal Hertleif 2025-02-12 11:06:03 +01:00 committed by João Marcos
parent fadfe1a213
commit 58271ab77f
3 changed files with 6 additions and 6 deletions

View File

@ -13,11 +13,11 @@ use clap::{Parser, ValueHint};
// Disable rustdoc::bare_urls because rustdoc parses URLs differently than Clap
#[allow(rustdoc::bare_urls)]
pub struct CliArgs {
/// Skip [Y/n] questions positively
/// Skip [Y/n] questions, default to yes
#[arg(short, long, conflicts_with = "no", global = true)]
pub yes: bool,
/// Skip [Y/n] questions negatively
/// Skip [Y/n] questions, default to no
#[arg(short, long, global = true)]
pub no: bool,

View File

@ -14,8 +14,8 @@ Commands:
help Print this message or the help of the given subcommand(s)
Options:
-y, --yes Skip [Y/n] questions positively
-n, --no Skip [Y/n] questions negatively
-y, --yes Skip [Y/n] questions, default to yes
-n, --no Skip [Y/n] questions, default to no
-A, --accessible Activate accessibility mode, reducing visual noise [env: ACCESSIBLE=]
-H, --hidden Ignore hidden files
-q, --quiet Silence output

View File

@ -19,10 +19,10 @@ Commands:
Options:
-y, --yes
Skip [Y/n] questions positively
Skip [Y/n] questions, default to yes
-n, --no
Skip [Y/n] questions negatively
Skip [Y/n] questions, default to no
-A, --accessible
Activate accessibility mode, reducing visual noise