snap disconnect <snapname>: prints a confusing error

Bug #1943987 reported by Paweł Stołowski
8
This bug affects 1 person
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-OPTIONS] [<snap>:<plug>] [<snap>:<slot>]

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
Revision history for this message
Paweł Stołowski (stolowski) wrote :
Changed in snapd:
status: In Progress → Fix Committed
Changed in snapd:
assignee: nobody → Miguel Pires (miguelpires1)
Changed in snapd:
status: Fix Committed → Fix Released
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.