FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 16 of file zfits.cc.

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

Referenced by main().

17 {
18  po::options_description control("zfits");
19  control.add_options()
20  ("in", var<string>()->required(), "")
21  ("out", var<string>(), "")
22  ("decompress,d", po_switch(), "")
23  ("force,f", var<string>(), "Force overwrite of output file")
24  ;
25 
26  po::positional_options_description p;
27  p.add("in", 1); // The 1st positional options
28  p.add("out", 2); // The 2nd positional options
29 
30  conf.AddOptions(control);
31  conf.SetArgumentPositions(p);
32 }
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

+ Here is the call graph for this function:

+ Here is the caller graph for this function: