FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 13 of file showlog.cc.

References Configuration::AddOptions(), po_switch(), and Configuration::SetArgumentPositions().

Referenced by main().

14 {
15  po::options_description control("Showlog");
16  control.add_options()
17  ("file,f", vars<string>(), "File names of log-files to be read.")
18  ("begin,b", var<string>(), "Start time to be displayed (e.g. 20:00:12)")
19  ("end,e", var<string>(), "End time to be displayed (e.g. 21:00:13)")
20  ("verbose,v", var<int16_t>()->implicit_value(true)->default_value(8), "Verbosity level (0:only fatal errors, 8:everything)")
21  ("color,c", po_switch(), "Process a file which already contains color codes")
22  ("strip,s", po_switch(), "Strip color codes completely")
23  ;
24 
25  po::positional_options_description p;
26  p.add("file", -1); // The first positional options
27 
28  conf.AddOptions(control);
29  conf.SetArgumentPositions(p);
30 }
po::typed_value< bool > * po_switch()
void SetArgumentPositions(const po::positional_options_description &desc)
void AddOptions(const po::options_description &opt, bool visible=true)
Definition: Configuration.h:92
double p
Definition: palObs.c:169

+ Here is the call graph for this function:

+ Here is the caller graph for this function: