parsed_program_options.h
Go to the documentation of this file.
1 #ifndef cetlib_parsed_program_options_h
2 #define cetlib_parsed_program_options_h
3 
4 // =====================================================================
5 // The parsed_program_options function provides a simple interface for
6 // accessing the boost::variables_map object created after the
7 // successful parsing of the command-line.
8 //
9 // The function accepts the 'argc' and 'argv' arguments passed to 'int
10 // main(...)' as well as the full program-options description object
11 // and an optional positional-options description object.
12 //
13 // This function disables program-option guessing--i.e. if the
14 // supported program option is --plugh and --plu is specified, it is
15 // an error and a exception will be thrown.
16 // =====================================================================
17 
18 #include "boost/program_options.hpp"
19 
20 namespace cet {
21  boost::program_options::variables_map parsed_program_options(
22  int argc,
23  char** argv,
24  boost::program_options::options_description const& desc,
25  boost::program_options::positional_options_description const& pos = {});
26 }
27 
28 #endif /* cetlib_parsed_program_options_h */
29 
30 // Local Variables:
31 // mode: c++
32 // End:
boost::program_options::variables_map parsed_program_options(int argc, char **argv, boost::program_options::options_description const &desc, boost::program_options::positional_options_description const &pos={})