Ah! That's fixed on master:

john@feuille:~/canonical/snappy/src/github.com/ubuntu-core/snappy$ 
GOPATH=~/canonical/snappy go build -o /tmp/snp 
github.com/ubuntu-core/snappy/cmd/snap && /tmp/snp help 
Usage:
  snp [OPTIONS] <command>

Help Options:
  -h, --help  Show this help message

Available commands:
  abort       Abort a pending change
  ack         Adds an assertion to the system
  changes     List system changes
  connect     Connects a plug to a slot
  disconnect  Disconnects a plug from a slot
  find        Finds packages to install
  help        Help
  install     Install a snap to the system
  interfaces  Lists interfaces in the system
  known       Shows known assertions of the provided type
  list        List installed snaps
  login       Authenticates on snapd and the store
  logout      Log out of the store
  refresh     Refresh a snap in the system
  remove      Remove a snap from the system

but it doesn't work for subcommands:

john@feuille:~/canonical/snappy/src/github.com/ubuntu-core/snappy$ /tmp/snp 
abort --help
Usage:
  snp [OPTIONS] abort change-id

The abort command attempts to abort a change that still has pending
tasks.

Help Options:
  -h, --help           Show this help message
john@feuille:~/canonical/snappy/src/github.com/ubuntu-core/snappy$ /tmp/snp 
help abort
Usage:
  snp [OPTIONS] <command>

Help Options:
  -h, --help  Show this help message

Available commands:
  abort       Abort a pending change
  ack         Adds an assertion to the system
  changes     List system changes
  connect     Connects a plug to a slot
  disconnect  Disconnects a plug from a slot
  find        Finds packages to install
  help        Help
  install     Install a snap to the system
  interfaces  Lists interfaces in the system
  known       Shows known assertions of the provided type
  list        List installed snaps
  login       Authenticates on snapd and the store
  logout      Log out of the store
  refresh     Refresh a snap in the system
  remove      Remove a snap from the system

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579553

Title:
  'snap help' is not well handled

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1579553/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to