736 if (!conf.DoParse(argc, argv,
PrintHelp))
740 if (!conf.Has(
"console"))
742 if (conf.Get<
bool>(
"no-dim"))
743 return RunShell<LocalStream, StateMachine, ConnectionLid>(conf);
745 return RunShell<LocalStream, StateMachineDim, ConnectionDimWeather>(conf);
748 if (conf.Get<
bool>(
"no-dim"))
750 if (conf.Get<
int>(
"console")==0)
751 return RunShell<LocalShell, StateMachine, ConnectionLid>(conf);
753 return RunShell<LocalConsole, StateMachine, ConnectionLid>(conf);
757 if (conf.Get<
int>(
"console")==0)
758 return RunShell<LocalShell, StateMachineDim, ConnectionDimWeather>(conf);
760 return RunShell<LocalConsole, StateMachineDim, ConnectionDimWeather>(conf);
void SetupConfiguration(Configuration &conf)
Commandline parsing, resource file parsing and database access.
void SetupConfiguration(Configuration &conf)