FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 589 of file dclient5.cc.

References Configuration::AddEnv(), Configuration::AddOptions(), Configuration::GetName(), and po_switch().

Referenced by main().

590 {
591  const string n = conf.GetName()+".log";
592 
593  po::options_description config("Program options");
594  config.add_options()
595  ("dns", var<string>("localhost"), "Dim nameserver host name (Overwites DIM_DNS_NODE environment variable)")
596  ("log,l", var<string>(n), "Write log-file")
597  ("no-dim,d", po_switch(), "Disable dim services")
598  ("console,c", var<int>(), "Use console (0=shell, 1=simple buffered, X=simple unbuffered)")
599  ;
600 
601  conf.AddEnv("dns", "DIM_DNS_NODE");
602 
603  conf.AddOptions(config);
604 }
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)
Definition: Configuration.h:92
const std::string & GetName() const

+ Here is the call graph for this function:

+ Here is the caller graph for this function: