1 #include <dsync/cmndline.h>
2 #include <dsync/error.h>
3 #include <dsync/filefilter.h>
5 int main(int argc, const char *argv[])
7 CommandLine::Args Args[] = {
8 {'i',"include","filter:: + ",CommandLine::HasArg},
9 {'e',"exclude","filter:: - ",CommandLine::HasArg},
10 {'c',"config-file",0,CommandLine::ConfigFile},
11 {'o',"option",0,CommandLine::ArbItem},
13 CommandLine CmdL(Args,_config);
14 if (CmdL.Parse(argc,argv) == false)
23 if (Filt.LoadFilter(_config->Tree("filter")) == false)
29 cout << "Test: " << Filt.Test(CmdL.FileList[0],CmdL.FileList[1]) << endl;