← Back to issue list

`snapcraft metrics` CLI requires `--name` but does not list the possible values

View original Github issue

Metadata

Project
snapcraft
Number
#6401
Type
issue
State
open
Author
bepri
Labels
Status: Triaged
Created
Updated
Closed

Current evaluation

snapcraft metrics CLI --name argument doesn't display available metric choices in help text. Issue is triaged but has no maintainer comments after 12 days.

Suggested action: keep open

Reason: The issue is triaged (has 'Status: Triaged' label) and describes a legitimate usability gap: the --name argument has choices defined in code (MetricName enum) but they aren't surfaced in help text. The issue is fresh (12 days old) and should remain open for a maintainer to address.

Impact: 55 Quick Win: 41.25 Staleness: 15 Complexity: 25 Confidence: 75 Support Request: 35

Issue body

### Check existing issues - [x] I've verified that this request isn't described by any existing issues. ### Request In order to use the `metrics` command, I have to open up a browser to read the metrics docs page, at which point I may as well just visit the web-based metrics dashboard. ``` imani@azalea:~$ snapcraft metrics -h Usage: snapcraft metrics [options] <snap-name> Summary: Retrieve store metric data for a snap you own. New metrics are generated daily. Positional arguments: snap-name: The snap name to check Options: -h, --help: Show this help message and exit -v, --verbose: Show debug information and be more verbose -q, --quiet: Only show warnings and errors, not progress --verbosity: Set the verbosity level to 'quiet', 'brief', 'verbose', 'debug' or 'trace' -V, --version: Show the application version and exit --name: Metric to view --start: Date in the format of YYYY-MM-DD. Defaults to yesterday. --end: Date in the format of YYYY-MM-DD. Defaults to yesterday. --format: Format for output See also: list list-registered names register upload-metadata For a summary of all commands, run 'snapcraft help --all'. imani@azalea:~$ snapcraft metrics --name Usage: snapcraft [options] command [args]... Try 'snapcraft metrics -h' for help. Error: argument --name: expected one argument imani@azalea:~$ snapcraft --version snapcraft 9.0.1 ``` ### Document location Provide the URL or file path of the relevant page.

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 55
Quick Win: 41.25
Staleness: 15
Complexity: 25
Confidence: 75
Support Request: 35
keep open snapcraft metrics CLI --name argument doesn't display available metric choices in help text. Issue is triaged but has no maintainer comments after 12 days.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 15
Confidence: 90
Support Request: 10
keep open CLI snapcraft metrics command requires a --name argument but fails to list valid metric options in its help text, forcing users to consult external documentation. Currently triaged, awaiting implementation.

Update history

Date Change
created

Related issues

No related issues found above the similarity threshold.