maas-cli with no arguments does not give usage

Bug #1058116 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
New
Undecided
Unassigned

Bug Description

If you invoke maas-cli with no arguments, it errors like below. Would'nt usage be more common (as shown further below).

$ maas-cli
usage: /usr/lib/python2.7/dist-packages/maascli/__main__.py [-h] {api} ...
/usr/lib/python2.7/dist-packages/maascli/__main__.py: error: too few arguments

$ maas-cli --help
usage: /usr/lib/python2.7/dist-packages/maascli/__main__.py [-h] {api} ...

Control MAAS from the command-line.

optional arguments:
  -h, --help show this help message and exit

commands:
  {api}
    api Interact with a remote MAAS server.

http://maas.ubuntu.com/

$ dpkg-query --show maas-cli
maas-cli 0.1+bzr1063+dfsg-0+1099+98~ppa0~quantal1

Tags: cli
Revision history for this message
Scott Moser (smoser) wrote :

This seems like it affects all subcomands also:
$ maas-cli api maaslocal account
usage: /usr/lib/python2.7/dist-packages/maascli/__main__.py api maaslocal account
       [-h] {delete-authorisation-token,create-authorisation-token} ...
/usr/lib/python2.7/dist-packages/maascli/__main__.py api maaslocal account: error: too few arguments

Raphaël Badin (rvb)
tags: added: cli
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.