From 741f968d8a73f88b73a31f2f183685504ac27b07 Mon Sep 17 00:00:00 2001 From: Can Date: Wed, 15 Apr 2026 13:47:11 +0000 Subject: [PATCH] feat: add --version / -V flag via clap Use clap's built-in version support instead of manual arg parsing. Rebased onto current main which already has clap 4 + subcommands. Change: add `version` to `#[command(name = "openab", version)]` --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 59330ab..be1e231 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,7 @@ use std::sync::Arc; use tracing::info; #[derive(Parser)] -#[command(name = "openab")] +#[command(name = "openab", version)] #[command(about = "Discord bot that manages ACP agent sessions", long_about = None)] struct Cli { #[command(subcommand)]