Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

feat: make -o and --json global param (#172)

Zayn Jarvisce59613a1102
diff --git a/crates/openviking-cli/src/main.rs b/crates/openviking-cli/src/main.rs
index 8986f343f..6e9f99a22 100644
--- a/crates/openviking-cli/src/main.rs
+++ b/crates/openviking-cli/src/main.rs
@@ -37,11 +37,11 @@ impl CliContext {
#[command(arg_required_else_help = true)]
struct Cli {
/// Output format
- #[arg(short, long, value_enum, default_value = "table")]
+ #[arg(short, long, value_enum, default_value = "table", global = true)]
output: OutputFormat,
/// Output compact JSON with {ok, result} wrapper (for scripts)
- #[arg(long)]
+ #[arg(long, global = true)]
json: bool,
#[command(subcommand)]