Snapcraft should respond to "help", "version", "-v", "--version"
Metadata
Current evaluation
Snapcraft 0.4 shipped help, -h, --help and --version handling; the bare version subcommand and -v alias were not supported.
Resolution: closed resolved
Reason: Maintainer elopio confirmed that help, -h, --help and --version worked, and the change was recorded as released in Snapcraft 0.4. The unsupported aliases were not part of that resolution.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Just playing with the snapcraft command, it would be good to handle:
snapcraft help -> equivalent to snapcraft -h
snapcraft version -> print a useful version number and prompt to "snapcraft help"
snapcraft -v -> same as snapcraft version
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Snapcraft 0.4 shipped help, -h, --help and --version handling; the bare version subcommand and -v alias were not supported. | |
| stealth/space-bunny-alpha | — | closed resolved | Added help/version handling, including `version`, `-v`, and `--version`; released in Snapcraft 0.4. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without a documented resolution. Later PRs #1366 and #1746 expanded version CLI support, but -v and version were unsupported at closure. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The request to add help and version flags was abandoned or superseded by upstream CLI updates. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The feature request to add help and version flags was abandoned or superseded by upstream CLI updates, evidenced by zero comments and closure after 36 days of inactivity. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Duplicate Of:
canonical/snapcraft#23
(confidence 99%)
GitHub issue with the same title and historical request.
-
Related To:
canonical/snapcraft#1366
(confidence 90%)
Later merged PR be4a92ad7 added global --version support.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #23 Snapcraft should respond to "help", "version", "-v", "--version" | snapcraft | closed | Implemented help and --version handling; later PRs #1366 and #1746 expanded version support. | |
| #1699 snapcraft <help> command | snapcraft | closed | Feature request by maintainer sergiusens to add a `snapcraft help <command>` sub-command. Resolved by merged PR #1845, commit cf20b3593 ("cli: implement help <command> (#1845)"), which added command-specific help support. | |
| #1590349 snapcraft should have a 'version' command | snapcraft (launchpad) | closed | Added the version subcommand via snapcore/snapcraft PR #1746 (commit 0820103ae); the change was merged and released in Snapcraft 2.40. |