Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

addArg

If found, they will be available by calling getArg or getFlag(). This functiow must be called before calling run().
Parameters:
argName long name of argument.
valueLabel label for the argument's value (used in help text).
description A description of the argument (used in help text).
defaultValue If supplied, then use this value if argument is not given.
argChar short one-character name of argument. (note that long arguments are unavailable on some platforms, so always give a non-empty char for this)
envVar If supplied, then an environment variable with this name may be used to supply a default value. (Command-line arguments always override environment variables)
("example", "value", "An example", 'x'); // for --example or -x addArg("example", "value", "An example"); addArg("example", "value", "An example", "default value", 'e', "VOSDAEMON_EXAMPLE"); addArg("example", "value", "An example", "default");
Note:
The built in options are:

Generated on Tue Aug 12 03:55:35 2003 for Interreality Project - VOS by doxygen 1.3.2