From 94f46568d5e436dbab158def1a7ace6ca22a0fb8 Mon Sep 17 00:00:00 2001 From: gereon Date: Sun, 16 Dec 2012 20:14:52 +0100 Subject: [PATCH] adding default value for trigger options trigger options get the value of the trigger that was registered first as default value. --- src/utility/settings.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utility/settings.cpp b/src/utility/settings.cpp index e22e72eaa..1414d8ece 100644 --- a/src/utility/settings.cpp +++ b/src/utility/settings.cpp @@ -67,7 +67,7 @@ Settings::Settings(const int argc, const char* argv[], const char* filename) str << "select " << it.first << " module (" << boost::algorithm::join(it.second, ", ") << ")"; Settings::desc->add_options() - (it.first.c_str(), bpo::value(), str.str().c_str()) + (it.first.c_str(), bpo::value()->default_value(it.second.front()), str.str().c_str()) ; } @@ -143,7 +143,6 @@ void Settings::initDescriptions() ("test-prctl", bpo::value(), "name of prctl file") ("trafile", bpo::value()->required(), "name of the .tra file") ("labfile", bpo::value()->required(), "name of the .lab file") - ("matrixlib", bpo::value()->default_value("gmm++"), "name of the matrix library") ; }