Make then '-config' parameter global

- `--config` needed to be the first argument, before any subcommands.
  Make `--config` global, so that it can appear at (almost) any place.
This commit is contained in:
Malte Meiboom
2026-05-06 15:49:36 +02:00
parent e98f5f7576
commit c0fe0e91ea
+1
View File
@@ -10,6 +10,7 @@ use clap::Subcommand;
pub struct CliArgs {
#[clap(
long, short,
global = true,
help = "Configuration file.",
)]
pub config: Option<String>,