Changeset 14621 for trunk/FACT++


Ignore:
Timestamp:
11/14/12 10:01:23 (12 years ago)
Author:
tbretz
Message:
Switch off console mode for server.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/dimctrl.cc

    r14539 r14621  
    1919    po::options_description control("Dim control options");
    2020    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.")
    2223        // ("verbosity,v",  var<uint32_t>()->implicit_value(0), "Set a new verbosity level (see MessageImp)")
    2324        // ("quiet,q",      po_bool(false),  "Suppress all output except comments (log-level>=90)")
     
    9192        return 127;
    9293
    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");
    9496
    95     if (!conf.Has("console"))
     97    if ((!conf.Has("console") || conf.Get<bool>("server")) && !conf.Get<bool>("force-console"))
    9698        return RunShell<RemoteStream>(conf);
    9799
Note: See TracChangeset for help on using the changeset viewer.