Main Page
Namespaces
Classes
Files
Directories
Related Pages
Namespace List
Namespace Members
conf Namespace Reference
Configuration options, command line parameters and config files.
More...
Classes
struct
Option
An option.
More...
class
Config
A class for defining, storing and querying options.
More...
Detailed Description
Configuration options, command line parameters and config files.
The command line options are parsed with the following features:
Short option names start with a hyphen followed by a character "-h".
If a short option needs a parameter, it must be given in the next command line argument "-i 10".
An argument consisting of just a hyphen and nothing else is not interpreted as an option.
Short options can be grouped after a single hyphen "-hi 10" or "-ih 10".
Long option names start with two hyphens "--foobar".
The parameter can be specified in two ways: "--int 10" or "--int=10"
An argument consisting of just two hyphens "--" is skipped, and all arguments after that are interpreted as non-options.
The configuration options can also be read from a file: see
Config::read()
Examples with options "-h", "-i INT", and "-s STR":
Valid: -h -i 10 -s str --string str --string=str -hic 10 str
Invalid: -i10 -sstr
Invalid: --integer --string 10 str
Example:
Generated on Mon Jan 8 15:51:04 2007 for bit by
1.4.6