mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 12:05:46 +00:00
Merge pull request #236 from LovecraftianHorror/make-some-flags-global
Make yes, no, and accessible flags global
This commit is contained in:
commit
a777940a57
@ -12,15 +12,15 @@ use clap::{Parser, ValueHint};
|
||||
#[clap(version)]
|
||||
pub struct Opts {
|
||||
/// Skip [Y/n] questions positively.
|
||||
#[clap(short, long, conflicts_with = "no")]
|
||||
#[clap(short, long, conflicts_with = "no", global = true)]
|
||||
pub yes: bool,
|
||||
|
||||
/// Skip [Y/n] questions negatively.
|
||||
#[clap(short, long)]
|
||||
#[clap(short, long, global = true)]
|
||||
pub no: bool,
|
||||
|
||||
/// Activate accessibility mode, reducing visual noise
|
||||
#[clap(short = 'A', long, env = "ACCESSIBLE")]
|
||||
#[clap(short = 'A', long, env = "ACCESSIBLE", global = true)]
|
||||
pub accessible: bool,
|
||||
|
||||
/// Ouch and claps subcommands
|
||||
|
Loading…
x
Reference in New Issue
Block a user