summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpidd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/src/qpidd.cpp')
-rw-r--r--qpid/cpp/src/qpidd.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/qpid/cpp/src/qpidd.cpp b/qpid/cpp/src/qpidd.cpp
index 38289ca333..978f9afe4f 100644
--- a/qpid/cpp/src/qpidd.cpp
+++ b/qpid/cpp/src/qpidd.cpp
@@ -77,26 +77,8 @@ struct QpiddOptions : public Broker::Options
}
void parse(int argc, char* argv[]) {
- po::variables_map vm;
- // Earlier sources get precedence.
- po::store(po::parse_command_line(argc, argv, desc), vm);
- try {
- po::store(po::parse_environment(desc, po::env2option), vm);
- }
- catch (const logic_error& e) {
- throw logic_error(string("parsing environment variables: ")
- + e.what());
- }
- po::notify(vm); // So we can use the value of config.
- try {
- ifstream conf(config.c_str());
- po::store(po::parse_config_file(conf, desc), vm);
- }
- catch (const logic_error& e) {
- throw logic_error(string("parsing config file: ")+ e.what());
- }
- po::notify(vm);
- };
+ parseOptions(desc, argc, argv, config);
+ }
void usage(ostream& out) const {
out << "Usage: qpidd [OPTIONS]" << endl << endl