BUG. snapcraft clean my-part -s build: "no such option: -s"


-s option does not work in of 3.5.1

Here is the help:
-s, --step [pull|build|stage|prime|strip]
only clean the specified step and those that
depend on it.
$ snapcraft clean my-part -s build
Error: no such option: -s

But --step works fine.
This issue broke all my scripts.


This option was removed in snapcraft 3.0 for whenever the base keyword is used. Auto-rebuild takes place or you can clean the entire part.