makes -d and -q global

This commit is contained in:
damirka 2021-04-08 17:49:08 +03:00
parent 166be0874c
commit 66e30ba0e1

View File

@ -46,10 +46,10 @@ use structopt::{clap::AppSettings, StructOpt};
#[derive(StructOpt, Debug)]
#[structopt(name = "leo", author = "The Aleo Team <hello@aleo.org>", setting = AppSettings::ColoredHelp)]
struct Opt {
#[structopt(short, long, help = "Print additional information for debugging")]
#[structopt(short, global = true, help = "Print additional information for debugging")]
debug: bool,
#[structopt(short, long, help = "Suppress CLI output")]
#[structopt(short, global = true, help = "Suppress CLI output")]
quiet: bool,
#[structopt(subcommand)]