snap disconnect <snapname>: prints a confusing error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Low
|
Miguel Pires |
Bug Description
The message for "snap disconnect foosnap:" commands prints a confusing message suggesting that "snap disconnect foosnap" syntax is supported (but it's not as shown below):
$ sudo snap disconnect skype:
error: invalid value: "skype:" (want snap:name or snap)
$ sudo snap disconnect skype
error: please provide the plug or slot name to disconnect from snap "skype"
For the record, according to help the following syntax is supported:
$ snap disconnect --help
Usage:
snap disconnect [disconnect-
The disconnect command disconnects a plug from a slot.
It may be called in the following ways:
$ snap disconnect <snap>:<plug> <snap>:<slot>
Disconnects the specific plug from the specific slot.
$ snap disconnect <snap>:<slot or plug>
Disconnects everything from the provided plug or slot.
The snap name may be omitted for the core snap.
(...)
description: | updated |
Changed in snapd: | |
importance: | Undecided → Low |
status: | New → In Progress |
Changed in snapd: | |
assignee: | nobody → Miguel Pires (miguelpires1) |
Changed in snapd: | |
status: | Fix Committed → Fix Released |
Related PR: https:/ /github. com/snapcore/ snapd/pull/ 10970