bool OECheckHelp(const OEInterface& itf, int argc, char** argv, bool help_for_no_args = true, OEPlatform::oeostream& ostr = OEERR);
This function checks if the command line entered by the user is requesting help for the programs interface. This function returns false and does nothing unless the first argument on the command line is "help". If no argument follows help the following is sent to ostr.
{program name} --help simple : Get a list of simple parameters {program name} --help all : Get a complete list of parameters {program name} --help defaults : List the defaults for all parameters {program name} --help <parameter> : Get detailed help on a parameter {program name} --help html : Create an html help file for this program
Where program name is argv[0]
. This list will also be shown
if there are no command line arguments (i.e., argc == 1
) and
help_for_no_args
is true.
The help keywords do the following.
simple
GetVisiblity
returns ParamVis::Simple
) and
their brief description known to the itf or any of its child interfaces.
Parameters appear in a hierarchy
identical to the hierarchy of the itf object and its child OEInterfaces.
Parameters of a given OEInterface are sorted first by there order priority
(e.g., the value returned by GetOrderPriority
) and secondarily
alphabetically. Output is sent to ostr
.
all
GetVisiblity
does not return ParamVis::Hidden
)
and their brief description known to the itf or any of its child interfaces.
Parameters appear in a hierarchy
identical to the hierarchy of the itf object and its child OEInterfaces.
Parameters of a given OEInterface are sorted first by there order priority
(e.g., the value returned by GetOrderPriority
) and secondarily
alphabetically. Output is sent to ostr
.
default
GetVisibility
does not return
ParamVis::Hidden
). Parameters without a default will be listed
with a message indicating they have no default. Parameters appear in a
hierarchy identical to the hierarchy of the itf object and its child
OEInterface
s. Parameters of a given OEInterface
are sorted first by there order priority (e.g., the value returned by
GetOrderPriority
) and secondarily alphabetically. Output is sent
to ostr
.
<parameter>
-html