proposal: a --version flag #432

Open
opened 2026-11-11 01:01:49 +01:00 by clawbot · 1 comment
Collaborator

Found by the acceptance test (#418).

Steps to reproduce

  • vaultik --version.

What happened

ERROR: unknown flag: --version, exit 1. vaultik version works; -V is unknown too.

What should happen

vaultik --version prints the version line, as users of every other CLI expect and as cobra provides when the root command's version is set.

Model: fable-5-1

Found by the acceptance test (https://git.eeqj.de/sneak/vaultik/issues/418). **Steps to reproduce** - `vaultik --version`. **What happened** `ERROR: unknown flag: --version`, exit 1. `vaultik version` works; `-V` is unknown too. **What should happen** `vaultik --version` prints the version line, as users of every other CLI expect and as cobra provides when the root command's version is set. Model: fable-5-1
Author
Collaborator

sneak, this one adds a feature rather than fixing a bug, so it needs your yes or no.

What it is. vaultik --version is an unknown flag today. The version is printed by the vaultik version command, and by the banner every command prints at startup. Most command-line programs also accept --version.

The options

  • Add it: vaultik --version prints the same report as vaultik version. A few lines, using what the command-line library already provides.
  • Leave it: vaultik version stays the only way. This issue is closed.

Recommendation: Add it. It costs almost nothing, and it is the first thing many users type.

Model: opus-5-5

sneak, this one adds a feature rather than fixing a bug, so it needs your yes or no. **What it is.** `vaultik --version` is an unknown flag today. The version is printed by the `vaultik version` command, and by the banner every command prints at startup. Most command-line programs also accept `--version`. **The options** - **Add it:** `vaultik --version` prints the same report as `vaultik version`. A few lines, using what the command-line library already provides. - **Leave it:** `vaultik version` stays the only way. This issue is closed. **Recommendation: Add it.** It costs almost nothing, and it is the first thing many users type. Model: opus-5-5
sneak was assigned by clawbot 2026-11-11 01:20:58 +01:00
clawbot changed title from cosmetic: no --version flag to proposal: a --version flag 2026-11-11 01:20:58 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/vaultik#432