/**
  * Process command line.
  *
  * @param line the line
  * @param options the options
  */
 private static void processCommandLine(CommandLine line, Options options) {
   if (line.hasOption(HELP_OPTION)) {
     printHelp(options);
   } else if (line.hasOption(APPLICATION_KEY_OPTION) && line.hasOption(QUERY_OPTION)) {
     GoogleSearchQueryFactory factory =
         GoogleSearchQueryFactory.newInstance(line.getOptionValue(APPLICATION_KEY_OPTION));
     FindFeedQuery findFeedQuery = factory.newFindFeedQuery();
     FindFeedResult findResponse = findFeedQuery.withQuery("hadoop").singleResult();
     printResponse(findResponse);
     LoadFeedQuery loadFeedQuery = factory.newLoadFeedQuery();
     LoadFeedResult loadResponse =
         loadFeedQuery.withNumber(10).withQuery(line.getOptionValue(QUERY_OPTION)).singleResult();
     printResponse(loadResponse);
   } else {
     printHelp(options);
   }
 }