confusing message about `snapcraft --destructive-mode clean`

Bug #1856055 reported by Ian Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

If I specify the --destructive-mode option before an argument such as clean, then snapcraft will default to assuming that the build environment is multipass for some reason:

```
$ snapcraft --destructive-mode clean
Usage: snapcraft clean [OPTIONS] <part>...

Error: --destructive-mode cannot be used with build provider 'multipass'
```

The correct way to do this is to use

```
$ snapcraft clean --destructive-mode
```

but still that's not obvious from the error message and IMHO it should just work to specify the --destructive-mode option first.

Revision history for this message
Ian Johnson (anonymouse67) wrote :

This is still a problem with snapcraft 4.0 on candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.