print usage on usage error

Bug #1823679 reported by John Lenton
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd
Triaged
Medium
Unassigned

Bug Description

Currently when a snap command is used wrong, it'll just print that; e.g.,

$ snap ack
error: the required argument `<assertion file>` was not provided

it wold be a lot more helpful if it also printed the usage, e.g.

$ snap ack
Usage:
  snap ack <assertion file>

error: the required argument `<assertion file>` was not provided

John Lenton (chipaca)
Changed in snapd:
assignee: nobody → John Lenton (chipaca)
Igor Komlew (glower)
Changed in snapd:
assignee: John Lenton (chipaca) → Igor Komlew (glower)
status: New → In Progress
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Hello Igor

Are you still working on fixing this issue? Do you need help adjusting the code?

Revision history for this message
Igor Komlew (glower) wrote :

Hi Zygmunt, I'm currently not working on it. The status was, that with the current `flags` lib we use it's hart to achieve. If you have time, uou can work on this, but please sync with John

Michael Vogt (mvo)
Changed in snapd:
assignee: Igor Komlew (glower) → nobody
status: In Progress → Triaged
importance: Undecided → Medium
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.