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