21 #include <boost/program_options.hpp> 25 namespace po = boost::program_options;
27 int main (
int argc,
char** argv)
29 po::positional_options_description p;
30 p.add(
"database-file", -1);
32 po::options_description desc(
"Allowed options");
34 (
"help,h",
"produce help message")
35 (
"database-file,d", po::value<vector<string> >(),
"database file")
39 po::store(po::command_line_parser(argc, argv).options(desc).positional(p).run(), vm);
42 if (vm.count(
"help") || !vm.count(
"database-file"))
48 vector<string> databaseFiles = vm[
"database-file"].as<vector<string> >();
50 cout<<
"removing models from ";
53 for (
string& database : databaseFiles)
66 cout<<
"Type yes to continue"<<endl;
69 transform(yes.begin(), yes.end(), yes.begin(), ::tolower);
72 cout<<
"aborting"<<endl;
void cleanModels(const std::vector< std::string > &databaseFiles)
int main(int argc, char **argv)
this namespace contains all generally usable classes.