diff --git a/src/commands/version.rs b/src/commands/version.rs index 7f4c317..5c36ac9 100644 --- a/src/commands/version.rs +++ b/src/commands/version.rs @@ -10,7 +10,7 @@ use crate::app::BaseApp; pub struct Args { /// Only print the version #[arg(long)] - plain: bool, + pub plain: bool, } pub async fn run(base_app: BaseApp, args: Args) -> Result<()> { diff --git a/src/main.rs b/src/main.rs index 9e9bad0..76b8e54 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,6 +12,7 @@ mod sources; mod util; #[derive(clap::Parser)] +#[clap(name = "mcman", version)] #[command(author = "ParadigmMC", color = clap::ColorChoice::Always)] #[command(about = "Powerful Minecraft Server Manager CLI")] #[command(after_help = "To start building servers, try 'mcman init'")]