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 // Disable rustdoc::bare_urls because rustdoc parses URLs differently than Clap
#[allow(rustdoc::bare_urls)] #[allow(rustdoc::bare_urls)]
pub struct CliArgs { pub struct CliArgs {
/// Skip [Y/n] questions positively /// Skip [Y/n] questions, default to yes
#[arg(short, long, conflicts_with = "no", global = true)] #[arg(short, long, conflicts_with = "no", global = true)]
pub yes: bool, pub yes: bool,
/// Skip [Y/n] questions negatively /// Skip [Y/n] questions, default to no
#[arg(short, long, global = true)] #[arg(short, long, global = true)]
pub no: bool, pub no: bool,

View File

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

View File

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