[Openstack] OpenStack Client Followup

Doug Hellmann doug.hellmann at dreamhost.com
Mon Apr 30 19:35:12 UTC 2012


On Mon, Apr 30, 2012 at 3:27 PM, Dean Troyer <dtroyer at gmail.com> wrote:

> On Mon, Apr 30, 2012 at 2:19 PM, Dolph Mathews <dolph.mathews at gmail.com>
> wrote:
> > I find this behavior really annoying... --help should be contextual
> > (depending on whether a subcommand is present, and what it is).
>
> > I hope not... +1 for argparse.
>
> Actually, argparse is one reason for this behaviour.  It doesn't like
> duplicated options in subparsers, nor subsets of names like we found
> in keystone with --tenant and --tenant_id, etc.  IIRC none of the
> existing clients do that, they all rely on 'help command' to get
> command-specific help.


Duplicated options will be less of an issue with cliff, since the second
level parser isn't instantiated until after the options to the main program
have already been consumed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120430/6831fb12/attachment.html>


More information about the Openstack mailing list