diff --git a/zero/src/bin/leader/cli.rs b/zero/src/bin/leader/cli.rs index ebde54a60..3569efc41 100644 --- a/zero/src/bin/leader/cli.rs +++ b/zero/src/bin/leader/cli.rs @@ -8,7 +8,7 @@ use zero::rpc::RpcType; /// zero-bin leader config #[derive(Parser)] -#[command(version = zero::version())] +#[command(version = zero::version(), propagate_version = true)] pub(crate) struct Cli { #[command(subcommand)] pub(crate) command: Command, diff --git a/zero/src/bin/rpc.rs b/zero/src/bin/rpc.rs index 26d25404e..9c6baa535 100644 --- a/zero/src/bin/rpc.rs +++ b/zero/src/bin/rpc.rs @@ -67,7 +67,7 @@ enum Command { } #[derive(Parser)] -#[command(version = zero::version())] +#[command(version = zero::version(), propagate_version = true)] struct Cli { #[clap(flatten)] pub(crate) config: RpcToolConfig, diff --git a/zero/src/bin/verifier/cli.rs b/zero/src/bin/verifier/cli.rs index e1eb3fe35..8c046d85c 100644 --- a/zero/src/bin/verifier/cli.rs +++ b/zero/src/bin/verifier/cli.rs @@ -4,7 +4,7 @@ use clap::{Parser, ValueHint}; use zero::prover_state::cli::CliProverStateConfig; #[derive(Parser)] -#[command(version = zero::version())] +#[command(version = zero::version(), propagate_version = true)] pub(crate) struct Cli { /// The file containing the proof to verify #[arg(short, long, value_hint = ValueHint::FilePath)] diff --git a/zero/src/bin/worker.rs b/zero/src/bin/worker.rs index 7431d7af6..096863a53 100644 --- a/zero/src/bin/worker.rs +++ b/zero/src/bin/worker.rs @@ -14,7 +14,7 @@ use zero::{ops::register, tracing}; static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc; #[derive(Parser)] -#[command(version = zero::version())] +#[command(version = zero::version(), propagate_version = true)] struct Cli { #[clap(flatten)] paladin: paladin::config::Config,