mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-05 02:55:31 +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
|
// 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,
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user