<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Mar 2, 2018 at 6:17 PM, Scott Kruger <span dir="ltr"><<a href="mailto:kruger@txcorp.com" target="_blank">kruger@txcorp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 3/2/18 12:44 PM, Matthew Knepley wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, Mar 2, 2018 at 2:39 PM, Jed Brown <<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a> <mailto:<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>>> wrote:<br>
<br>
    Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a> <mailto:<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>>> writes:<br>
<br>
     > That is not the same as printing unused arguments. Michael's Pythia<br>
     > does this correctly, but it is even less simple.<br>
<br>
    You want it to accept the unused arguments and just print them without<br>
    error, or some more subtle relationship among dependent options?<br>
<br>
<br>
Yes, I do. I consider PETSc to have the correct functionality. The open world<br>
assumption is a good one, as long as you report that no one accepted that option.<br>
</blockquote>
<br>
<a href="https://docs.python.org/3/library/argparse.html#partial-parsing" rel="noreferrer" target="_blank">https://docs.python.org/3/libr<wbr>ary/argparse.html#partial-pars<wbr>ing</a><br>
<br>
Requires Python > 2.7</blockquote><div><br></div><div>Good catch!</div><div><br></div><div>The other thing I remember argparse not doing last time I checked, was that it could</div><div>group options into sections like we want for our help.</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
   Matt<br>
<br>
       We're<br>
    here in a thread about not silently accepting options that *don't<br>
    exist anywhere*.<br>
<br>
<br>
<br><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>
<br>
<a href="https://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank">https://www.cse.buffalo.edu/~k<wbr>nepley/</a> <<a href="http://www.caam.rice.edu/~mk51/" rel="noreferrer" target="_blank">http://www.caam.rice.edu/~mk5<wbr>1/</a>><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Tech-X Corporation               <a href="mailto:kruger@txcorp.com" target="_blank">kruger@txcorp.com</a><br>
5621 Arapahoe Ave, Suite A       Phone: <a href="tel:%28720%29%20974-1841" value="+17209741841" target="_blank">(720) 974-1841</a><br>
Boulder, CO 80303                Fax:   <a href="tel:%28303%29%20448-7756" value="+13034487756" target="_blank">(303) 448-7756</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.caam.rice.edu/~mk51/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div>
</div></div>