Definition at line 25 of file Main.h.
References Configuration::AddEnv(), Configuration::AddOptions(), Configuration::GetName(), po_bool(), and po_switch().
Referenced by main().
27 const string n = conf.
GetName()+
".log";
29 po::options_description config(
"Program options");
31 (
"dns", var<string>(
"localhost"),
"Dim nameserver (overwites DIM_DNS_NODE environment variable)")
32 (
"host", var<string>(),
"Address with which the Dim nameserver can connect to this host (overwites DIM_HOST_NODE environment variable)")
33 (
"log,l", var<string>(n),
"Name of local log-file")
34 (
"logpath", var<string>(),
"Absolute path to log-files (default: excutable's directory)")
35 (
"no-log",
po_switch(),
"Supress log-file")
36 (
"append-log",
po_bool(),
"Append log information to local log-file")
37 (
"null",
po_switch(),
"Suppresses almost all console output - including errors (only available without --console option)")
38 (
"console,c", var<int>(),
"Use console (0=shell, 1=simple buffered, X=simple unbuffered)")
39 (
"cmd", vars<string>(),
"Execute one or more commands at startup")
40 (
"exec,e", vars<string>(),
"Execute one or more scrips at startup ('file:N' - start at label N)")
41 (
"arg:*", var<string>(),
"Arguments for script execution with --exc, e.g. --arg:ra='12.5436'")
42 (
"home", var<string>(),
"Path to home directory (used as default for logpath if standard log files not writable)")
43 (
"quit",
po_switch(),
"Quit after startup");
46 conf.
AddEnv(
"dns",
"DIM_DNS_NODE");
47 conf.
AddEnv(
"host",
"DIM_HOST_NODE");
48 conf.
AddEnv(
"home",
"HOME");
po::typed_value< bool > * po_switch()
void AddEnv(const std::string &conf, const std::string &env)
void AddOptions(const po::options_description &opt, bool visible=true)
po::typed_value< bool > * po_bool(bool def=false)
const std::string & GetName() const