22#include <boost/algorithm/string/replace.hpp>
41 out <<
"==================================================\n";
42 out <<
"======== VOTCA (http://www.votca.org) ========\n";
43 out <<
"==================================================\n\n";
72 if (
op_vm_.count(
"verbose")) {
75 if (
op_vm_.count(
"verbose1")) {
79 if (
op_vm_.count(
"verbose2")) {
83 if (
op_vm_.count(
"help")) {
96 cout <<
"Done - stopping here\n";
98 }
catch (std::exception &error) {
99 cerr <<
"an error occurred:\n" << error.what() << endl;
105boost::program_options::options_description_easy_init
113 std::map<string, boost::program_options::options_description>::iterator iter =
116 return iter->second.add_options();
121 make_pair(group, boost::program_options::options_description(group)));
127 namespace po = boost::program_options;
135 if (pair.first !=
"Hidden") {
144 }
catch (boost::program_options::error &err) {
145 throw runtime_error(
string(
"error parsing command line: ") + err.what());
150 const string &error_msg) {
151 if (!
op_vm_.count(option_name)) {
153 throw std::runtime_error(
"missing argument " + option_name +
"\n" +
base class for all analysis tools
static Level current_level