/******************************************************************************** * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH * * * * This software is distributed under the terms of the * * GNU Lesser General Public Licence (LGPL) version 3, * * copied verbatim in the file "LICENSE" * ********************************************************************************/ /* * File: FairProgOptions.cxx * Author: winckler * * Created on March 11, 2015, 5:38 PM */ #include "FairProgOptions.h" #include #include #include using namespace std; FairProgOptions::FairProgOptions() : fVarMap() , fGeneralDesc("General options") , fCmdLineOptions("Command line options") , fVisibleOptions("Visible options") , fConfigMutex() { fGeneralDesc.add_options() ("help,h", "produce help") ("version,v", "print version") ("severity", po::value()->default_value("debug"), "Log severity level : trace, debug, info, state, warn, error, fatal, nolog") ("verbosity", po::value()->default_value("medium"), "Log verbosity level : veryhigh, high, medium, low") ("color", po::value()->default_value(true), "Log color (true/false)") ("print-options", po::value()->implicit_value(true), "print options in machine-readable format (