From 888a05146bf6d1e3e0ce86899a31fc63cbd1f4f1 Mon Sep 17 00:00:00 2001 From: adlee-was-taken Date: Sat, 9 May 2026 12:22:20 -0400 Subject: [PATCH] feat(cli): alias `gen` for generate subcommand + add -l / -w short flags clap alias makes both `relicario gen -l 32` and the long-form `relicario generate -l 32` route to the same handler. The short flags -l (length) and -w (words) were missing -- the READMEs existing example `relicario generate -l 32` only actually worked after this commit. Co-Authored-By: Claude Opus 4.7 --- crates/relicario-cli/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/relicario-cli/src/main.rs b/crates/relicario-cli/src/main.rs index ab59cdb..9ffd212 100644 --- a/crates/relicario-cli/src/main.rs +++ b/crates/relicario-cli/src/main.rs @@ -140,12 +140,13 @@ enum Commands { /// vault, falls back to `settings generator-defaults` for unspecified /// flags; outside a vault, uses built-in defaults (length 20, safe /// symbol set, 5 BIP39 words, space separator). + #[command(alias = "gen")] Generate { - #[arg(long)] + #[arg(short = 'l', long)] length: Option, #[arg(long)] bip39: bool, - #[arg(long)] + #[arg(short = 'w', long)] words: Option, #[arg(long)] symbols: Option,