<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 30, 2012 at 3:27 PM, Dean Troyer <span dir="ltr"><<a href="mailto:dtroyer@gmail.com" target="_blank">dtroyer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Apr 30, 2012 at 2:19 PM, Dolph Mathews <<a href="mailto:dolph.mathews@gmail.com">dolph.mathews@gmail.com</a>> wrote:<br>
</div><div class="im">> I find this behavior really annoying... --help should be contextual<br>
> (depending on whether a subcommand is present, and what it is).<br>
<br>
</div><div class="im">> I hope not... +1 for argparse.<br>
<br>
</div>Actually, argparse is one reason for this behaviour.  It doesn't like<br>
duplicated options in subparsers, nor subsets of names like we found<br>
in keystone with --tenant and --tenant_id, etc.  IIRC none of the<br>
existing clients do that, they all rely on 'help command' to get<br>
command-specific help.</blockquote><div><br></div><div>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. </div>
</div></div>