]> Untitled Git - bdk-cli/commitdiff
fix(pretty): use pretty option in any position
authorVadim Anufriev <mailbox@vaan.io>
Tue, 21 Oct 2025 09:36:27 +0000 (13:36 +0400)
committerVadim Anufriev <mailbox@vaan.io>
Tue, 21 Oct 2025 09:36:27 +0000 (13:36 +0400)
src/commands.rs

index 62a6a2ddef047c9c96df10ff4a0573ad6f35e5ba..54cddf044c469660fd013793aed3ef90ebb368a8 100644 (file)
@@ -52,7 +52,7 @@ pub struct CliOpts {
     #[arg(env = "DATADIR", short = 'd', long = "datadir")]
     pub datadir: Option<std::path::PathBuf>,
     /// 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)]