784 po::variables_map vm;
787 vm = conf.Parse(argc, argv);
789 #if BOOST_VERSION > 104000 790 catch (po::multiple_occurrences &e)
792 cerr <<
"Program options invalid due to: " << e.what() <<
" of '" << e.get_option_name() <<
"'." << endl;
798 cerr <<
"Program options invalid due to: " << e.what() << endl;
805 if (!conf.Has(
"console"))
807 if (conf.Get<
bool>(
"no-dim"))
808 return RunShell<LocalStream, StateMachine>(conf);
810 return RunShell<LocalStream, StateMachineDim>(conf);
813 if (conf.Get<
bool>(
"no-dim"))
815 if (conf.Get<
int>(
"console")==0)
816 return RunShell<LocalShell, StateMachine>(conf);
818 return RunShell<LocalConsole, StateMachine>(conf);
822 if (conf.Get<
int>(
"console")==0)
823 return RunShell<LocalShell, StateMachineDim>(conf);
825 return RunShell<LocalConsole, StateMachineDim>(conf);
void SetupConfiguration(Configuration &conf)
void SetupConfiguration(Configuration &conf)
Commandline parsing, resource file parsing and database access.