From 17a4dcae2b9b2cea18e27cb31c2da3d74863b93c Mon Sep 17 00:00:00 2001 From: Vadim Anufriev Date: Tue, 21 Oct 2025 13:36:27 +0400 Subject: [PATCH] fix(pretty): use pretty option in any position --- src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)] -- 2.49.0