From: Vadim Anufriev Date: Tue, 21 Oct 2025 09:36:27 +0000 (+0400) Subject: fix(pretty): use pretty option in any position X-Git-Url: http://internal-gitweb-vhost/?a=commitdiff_plain;h=17a4dcae2b9b2cea18e27cb31c2da3d74863b93c;p=bdk-cli fix(pretty): use pretty option in any position --- diff --git a/src/commands.rs b/src/commands.rs index 62a6a2d..54cddf0 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -52,7 +52,7 @@ pub struct CliOpts { #[arg(env = "DATADIR", short = 'd', long = "datadir")] pub datadir: Option, /// Output results in pretty format (instead of JSON). - #[arg(long = "pretty")] + #[arg(long = "pretty", global = true)] pub pretty: bool, /// Top level cli sub-commands. #[command(subcommand)]