X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=grep.cpp;h=07743072be997253e83356cd5704ea414be7c282;hp=eaf1663e7cf1098b42aabd4b9dc454b5f09f61e6;hb=47df471884234130a2a27f0a5fc842df3f994a3e;hpb=a3bf8b72faa5fce99f0f6384d6d9b6588a1de072 diff --git a/grep.cpp b/grep.cpp index eaf1663..0774307 100644 --- a/grep.cpp +++ b/grep.cpp @@ -14,7 +14,7 @@ int main(int argc, char **argv) getopt.add_option('d', "debug", debug, GetOpt::NO_ARG); getopt(argc, argv); - const list &args=getopt.get_args(); + const vector &args=getopt.get_args(); if(args.empty()) { @@ -22,7 +22,7 @@ int main(int argc, char **argv) return 1; } - Regex regex(argv[1]); + Regex regex(args[0]); if(debug) cout<