From d2fa79f050c1425c16f7b7202b6056f75fd46523 Mon Sep 17 00:00:00 2001 From: elkowar <5300871+elkowar@users.noreply.github.com> Date: Sun, 7 Feb 2021 20:31:39 +0100 Subject: [PATCH] Make --debug a global flag --- src/opts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opts.rs b/src/opts.rs index ebde049..09d62fc 100644 --- a/src/opts.rs +++ b/src/opts.rs @@ -18,7 +18,7 @@ pub struct Opt { #[derive(StructOpt, Debug, Serialize, Deserialize, PartialEq)] struct RawOpt { /// Write out debug logs. (To read the logs, run `eww logs`). - #[structopt(long = "debug")] + #[structopt(long = "debug", global = true)] log_debug: bool, #[structopt(subcommand)]