diff --git a/crates/fluvio-version-manager/Cargo.toml b/crates/fluvio-version-manager/Cargo.toml index 297cf71f5c..74c52bf4fe 100644 --- a/crates/fluvio-version-manager/Cargo.toml +++ b/crates/fluvio-version-manager/Cargo.toml @@ -17,7 +17,7 @@ path = "src/main.rs" # Workspace Dependencies anyhow = { workspace = true } async-std = { workspace = true, features = ["attributes"] } -clap = { workspace = true, features = ["std", "color", "derive", "env", "help"] } +clap = { workspace = true, features = ["std", "color", "help", "usage", "derive", "env"] } colored = { workspace = true } comfy-table = { workspace = true } current_platform = { workspace = true } diff --git a/crates/fluvio-version-manager/src/command/install.rs b/crates/fluvio-version-manager/src/command/install.rs index f3a70e4043..2c87184382 100644 --- a/crates/fluvio-version-manager/src/command/install.rs +++ b/crates/fluvio-version-manager/src/command/install.rs @@ -27,7 +27,7 @@ pub struct InstallOpt { /// Registry used to fetch Fluvio Versions #[arg(long, env = "HUB_REGISTRY_URL", default_value = HUB_REMOTE)] registry: Url, - /// Version to install + /// Version to install: stable, latest, or named-version x.y.z #[arg(index = 1, default_value_t = Channel::Stable)] version: Channel, } diff --git a/crates/fluvio-version-manager/src/main.rs b/crates/fluvio-version-manager/src/main.rs index 4678123445..554e3d377d 100644 --- a/crates/fluvio-version-manager/src/main.rs +++ b/crates/fluvio-version-manager/src/main.rs @@ -33,6 +33,7 @@ async fn main() -> Result<()> { name = BINARY_NAME, about = "Fluvio Version Manager (FVM)", max_term_width = 100, + arg_required_else_help = true, )] pub struct Cli { #[clap(long, short = 'q', help = "Suppress all output")]