<div class="gmail_quote">On Fri, Aug 26, 2011 at 12:32 AM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>I wanted (a) only one -help output per object and (b) more structured options for objects, so I added two fields to _p_PetscObject:</div><div><br></div><div>char *description; /* long description of the object */</div>

<div>char *mansec; /* manual section for more information about the object */</div><div><br></div><div>These correspond to two new arguments to PetscHeaderCreate().</div><div><br></div><div>Then I made a new function PetscObjectOptionsBegin(PetscObject) that handles printing only once (through a flag in _p_PetscObject) and fills out the correct description and man sections.</div>

<div><br></div>I'm most of the way done with implementing this, but speak up if you think it's a bad idea.
</blockquote></div><br>Do we really need per object help? Shouldn't this be per class?<div><br></div><div>   Matt<br clear="all"><div><br></div>-- <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>
</div>