Changeset 11576 for trunk/FACT++


Ignore:
Timestamp:
07/24/11 21:11:18 (13 years ago)
Author:
tbretz
Message:
Added host option.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/fact.cc

    r11366 r11576  
    3535    po::options_description config("Program options");
    3636    config.add_options()
    37         ("dns",       var<string>("localhost"),  "Dim nameserver host name (Overwites DIM_DNS_NODE environment variable)")
     37        ("dns",  var<string>("localhost"), "Dim nameserver (overwites DIM_DNS_NODE environment variable)")
     38        ("host", var<string>(""),          "Address with which the Dim nameserver can connect to this host (overwites DIM_HOST_NODE environment variable)")
    3839        ;
    3940
    4041    conf.AddEnv("dns", "DIM_DNS_NODE");
     42    conf.AddEnv("dns", "DIM_HOST_NODE");
    4143
    4244    conf.AddOptions(config);
     
    7678    }
    7779
    78     Dim::Setup(conf.Get<string>("dns"));
     80    Dim::Setup(conf.Get<string>("dns"), conf.Get<string>("host"));
    7981
    8082    QApplication app(argc, const_cast<char**>(argv));
Note: See TracChangeset for help on using the changeset viewer.