getopt.add_option('d', "debug", debug, GetOpt::NO_ARG);
getopt(argc, argv);
- const list<string> &args=getopt.get_args();
+ const vector<string> &args=getopt.get_args();
if(args.empty())
{
return 1;
}
- Regex regex(argv[1]);
+ Regex regex(args[0]);
if(debug)
cout<<regex.disassemble();
string line;