mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-03 10:00:19 +00:00
refactor(cli): Clearer docs for -y/-n
This commit is contained in:
parent
fadfe1a213
commit
58271ab77f
@ -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,
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user