From ecd07ffefa0c7548dfb3c70f4ba8268aa58a6f51 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Fri, 24 Nov 2023 19:15:16 -0800 Subject: [PATCH] Make only one way to get the version of the CLI --- cmd/soroban-cli/src/commands/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/soroban-cli/src/commands/mod.rs b/cmd/soroban-cli/src/commands/mod.rs index a9f668082..8e9889fc3 100644 --- a/cmd/soroban-cli/src/commands/mod.rs +++ b/cmd/soroban-cli/src/commands/mod.rs @@ -45,11 +45,10 @@ Full CLI reference: https://github.com/stellar/soroban-tools/tree/main/docs/soro #[derive(Parser, Debug)] #[command( name = "soroban", - version = version::short(), - long_version = version::long(), about = ABOUT, long_about = ABOUT.to_string() + LONG_ABOUT, disable_help_subcommand = true, + disable_version_flag = true, )] pub struct Root { #[clap(flatten)]