stalecontext/forgejo-cli-plus
2
4
Fork
You've already forked forgejo-cli-plus
1

Add --version flag #43

Closed
opened 2026年03月31日 01:55:15 +02:00 by stalecontext · 0 comments

There is no way to check the installed version of fj.

Reproduction

$ fj --version
error: unexpected argument '--version' found
 tip: a similar argument exists: '--verbose'
Usage: fj.exe --verbose <COMMAND>

Expected behavior

fj --version should print the version string from Cargo.toml (e.g. fj 0.1.0).

Notes

clap supports this via #[command(version)] on the top-level Args struct. Should be a one-line fix.

There is no way to check the installed version of fj. ## Reproduction ``` $ fj --version error: unexpected argument '--version' found tip: a similar argument exists: '--verbose' Usage: fj.exe --verbose <COMMAND> ``` ## Expected behavior `fj --version` should print the version string from Cargo.toml (e.g. `fj 0.1.0`). ## Notes clap supports this via `#[command(version)]` on the top-level Args struct. Should be a one-line fix.
Sign in to join this conversation.
No Branch/Tag specified
main
feature/issue-batch-2026-07
upstream-sync/2026-07-02
feat/repo-create-org
projects
v2.0.0
upstream-reviewed/2026-07-02
v1.1.0
upstream-reviewed/2026-03-31
v1.0.0
upstream-reviewed/2026-03-16
v0.4.0
v0.3.0
v0.2.0
v0.1.1
v0.1.0
v0.0.4
v0.0.3
v0.0.2
v0.0.1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
stalecontext/forgejo-cli-plus#43
Reference in a new issue
stalecontext/forgejo-cli-plus
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?