Skip to content

Commit ce59613

Browse files
authored
feat: make -o and --json global param (#172)
1 parent 44032c9 commit ce59613

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/openviking-cli/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ impl CliContext {
3737
#[command(arg_required_else_help = true)]
3838
struct Cli {
3939
/// Output format
40-
#[arg(short, long, value_enum, default_value = "table")]
40+
#[arg(short, long, value_enum, default_value = "table", global = true)]
4141
output: OutputFormat,
4242

4343
/// Output compact JSON with {ok, result} wrapper (for scripts)
44-
#[arg(long)]
44+
#[arg(long, global = true)]
4545
json: bool,
4646

4747
#[command(subcommand)]

0 commit comments

Comments
 (0)