snapcraft does not recognize -s flag, only --step, while help says otherwise
Metadata
Current evaluation
Resolved by snapcore/snapcraft#2737, which aligned the clean command's step option, help output, and generated cleanup guidance with actual CLI parsing.
Resolution: closed resolved
Reason: Maintainer @sergiusens linked PR #2737 as the resolution. It corrected the mismatch that caused -s to be advertised and suggested despite not being accepted.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Snacraft help shows '-s step' as valid, but accepts only '--step':
$ snapcraft clean --help
Usage: snapcraft help [OPTIONS] <part>...
Remove content - cleans downloads, builds or install artifacts.
Examples:
snapcraft clean
snapcraft clean my-part --step build
Options:
-s, --step [pull|build|stage|prime|strip]
only clean the specified step and those that
depend on it.
--help Show this message and exit.
$ snapcraft clean kernel -s build
Error: no such option: -s
$ snapcraft clean kernel --step build
Cleaning build step (and all subsequent steps) for kernel
Cleaning up priming area
Cleaning up staging area
Either the help text needs to be updated or '-s' put back. Note also that this snapcraft.yaml was not using the 'base' yaml key: https://github.com/taiten/nitrogen6x-kernel-snap/blob/master/snapcraft.yaml
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Resolved by snapcore/snapcraft#2737, which aligned the clean command's step option, help output, and generated cleanup guidance with actual CLI parsing. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR snapcore/snapcraft#2737, restoring `snapcraft clean -s` as commit 1681848ff. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR snapcore/snapcraft#2737 restored the documented snapcraft clean -s alias for --step, resolving LP #1834628 in commit 1681848ff. | |
| stealth/space-bunny-alpha | — | closed stale | The snapcraft clean -s/--step mismatch was closed without a documented fix or linked pull request (Launchpad #1834628). | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or comments. The missing -s short flag for --step in snapcraft clean was not addressed, indicating the report was abandoned or resolved in a later release. | |
| qwen/qwen3.6-35b-a3b | — | — | The snapcraft clean help text incorrectly advertised the -s flag, which was nonfunctional. The report was closed without resolution or code changes, remaining abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. The -s short flag for --step in snapcraft clean remains unimplemented despite CLI documentation. The report was closed without resolution due to inactivity. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. The help text incorrectly lists -s as a valid short flag for --step, but the CLI rejects it. The issue was abandoned due to inactivity. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcore/snapcraft#2737
(confidence 99%)
The maintainer directly linked this PR as the fix for the inconsistent clean-step option syntax.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #403 Added valid STEPs info to clean command | snapcraft | closed | Valid STEP help text for `snapcraft clean -s` was superseded by merged PR #423, landing as commit 28f568d99. | |
| #1980515 Snapcraft 7 inconsistent CLI options handling | snapcraft (launchpad) | closed | Snapcraft 7's inconsistent --verbose handling was fixed by snapcore/snapcraft#4024 (commit be005b98d); a maintainer confirmed it was resolved in Snapcraft 7.3. |