485 if (!conf.DoParse(argc, argv,
PrintHelp))
489 if (!conf.Has(
"console"))
491 if (conf.Get<
bool>(
"no-dim"))
492 return RunShell<LocalStream, StateMachine, ConnectionPowerSwitch>(conf);
494 return RunShell<LocalStream, StateMachineDim, ConnectionDimPowerSwitch>(conf);
497 if (conf.Get<
bool>(
"no-dim"))
499 if (conf.Get<
int>(
"console")==0)
500 return RunShell<LocalShell, StateMachine, ConnectionPowerSwitch>(conf);
502 return RunShell<LocalConsole, StateMachine, ConnectionPowerSwitch>(conf);
506 if (conf.Get<
int>(
"console")==0)
507 return RunShell<LocalShell, StateMachineDim, ConnectionDimPowerSwitch>(conf);
509 return RunShell<LocalConsole, StateMachineDim, ConnectionDimPowerSwitch>(conf);
void SetupConfiguration(Configuration &conf)
void SetupConfiguration(Configuration &conf)
Commandline parsing, resource file parsing and database access.