← Back to issue list

snapcraft does not recognize -s flag, only --step, while help says otherwise

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1834628
Type
issue
State
closed
Author
~alfonsosanchezbeato
Labels
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

The snapcraft clean help text incorrectly advertised the -s flag, which was nonfunctional. The report was closed without resolution or code changes, remaining abandoned.

Suggested action:

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
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

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1799925 snapcraft gives conflicting advice for cleaning parts snapcraft (launchpad) closed Closed without a fix. Snapcraft incorrectly advised running snapcraft clean with part and step flags, which were unsupported. The author worked around it with a full clean. The report appears abandoned or superseded by later updates.
76%
#1615060 snapcraft clean is incomplete snapcraft (launchpad) closed Reporting that snapcraft clean skips local .snap files was closed without comments or resolution, indicating the report was abandoned or left unresolved.
72%
#1699 snapcraft <help> command snapcraft closed Closed without implementation or discussion. No resolution or merge details were provided, indicating the snapcraft help command feature request was abandoned.
71%