Changeset 14621 for trunk/FACT++
- Timestamp:
- 11/14/12 10:01:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/dimctrl.cc
r14539 r14621 19 19 po::options_description control("Dim control options"); 20 20 control.add_options() 21 ("server", po_bool(false), "Start dimctrl as a dim server") 21 ("server", po_bool(false), "Start dimctrl as a dim server (console mode switched off)") 22 ("force-console",po_switch(), "Forces console mode in server-mode.") 22 23 // ("verbosity,v", var<uint32_t>()->implicit_value(0), "Set a new verbosity level (see MessageImp)") 23 24 // ("quiet,q", po_bool(false), "Suppress all output except comments (log-level>=90)") … … 91 92 return 127; 92 93 93 //return RunShell<LocalStream>(conf); 94 if (conf.Get<bool>("force-console") && !conf.Has("console")) 95 throw runtime_error("--force-console must be used with --console/-c"); 94 96 95 if ( !conf.Has("console"))97 if ((!conf.Has("console") || conf.Get<bool>("server")) && !conf.Get<bool>("force-console")) 96 98 return RunShell<RemoteStream>(conf); 97 99
Note:
See TracChangeset
for help on using the changeset viewer.