("print,p","Prints the local database tree (default=off)")
("file,f",po::value< vector<string> >(),"Adds the file to the local database")
("dir,d",po::value< vector<string> >(),"Adds the directory to the local database")
- ("sync,s","Synchronizes the local database with the files")
+ ("sync,s",po::value< vector<string> >(),"Synchronizes the local database with the files")
("recurse,r","Recurse into sub-directories (default=off)")
("repair,R","Repair the database (on synchronization) (default=off)")
("check,c","Check for attribute differences (on synchronization) (default=off)");
if (vm.count("sync")) {
bool rep=false;
bool chk=false;
+ std::vector<std::string> name=vm["sync"].as< vector<string> >();
std::stringstream out;
out<<vm.count("repair");
if(out.str().compare("1")==0){rep=true;}
std::stringstream out2;
out2<<vm.count("check");
if(out2.str().compare("1")==0){chk=true;}
- cout<<g.Synchronize(rep,chk)<<"\n";
+ cout<<g.Synchronize(name.front(),rep,chk)<<"\n";
}
g.Finalize();
}