//uses CommandLineProcessor package to process command line and store corresponding arguments in        instance variables. Then initiates the text serach by calling serachText(string).
 public void processQuery(string[] args)
 {
     cmdlineproc.processCmdLine(args);
     path                = cmdlineproc.getPath();
     filepatterns        = cmdlineproc.getInpuFilePatterns();
     textqueries         = cmdlineproc.getTextQueries();
     recursivefilesearch = cmdlineproc.getRecursiveFileSearch();
     matchalltextqueries = cmdlineproc.getMatchAllQueries();
     searchText(path);
 }