From c0fe0e91ea553c30008bde7631f443f91dd90483 Mon Sep 17 00:00:00 2001 From: Malte Meiboom Date: Wed, 6 May 2026 15:49:36 +0200 Subject: [PATCH] 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. --- src/cli/cli_args.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli/cli_args.rs b/src/cli/cli_args.rs index f925380..539bfc2 100644 --- a/src/cli/cli_args.rs +++ b/src/cli/cli_args.rs @@ -10,6 +10,7 @@ use clap::Subcommand; pub struct CliArgs { #[clap( long, short, + global = true, help = "Configuration file.", )] pub config: Option,