Examples of printHelp()


Examples of org.apache.commons.cli.HelpFormatter.printHelp()

  }

  private static void printCliHelp(Options cliOptions)
  {
    HelpFormatter helpFormatter = new HelpFormatter();
    helpFormatter.printHelp("java " + BootstrapDBCleanerMain.class.getName(), cliOptions);
  }
}
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

      System.exit(-1);
    }

    if (!cmdline.hasOption(DATA_OPTION) || !cmdline.hasOption(OUTPUT_OPTION)) {
      HelpFormatter formatter = new HelpFormatter();
      formatter.printHelp(AsyncHTMLStatusBlockCrawler.class.getName(), options);
      System.exit(-1);
    }

    String data = cmdline.getOptionValue(DATA_OPTION);
    String output = cmdline.getOptionValue(OUTPUT_OPTION);
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

      } catch( ParseException exp ) {
          // oops, something went wrong
          System.err.println( "Parsing failed.  Reason: " + exp.getMessage() );
         
        HelpFormatter formatter = new HelpFormatter();
        formatter.printHelp( "sizewhere", options );
      }       
    }
           
}
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

        } catch(ParseException exp) {
            // oops, something went wrong
            System.err.println("Parsing failed.  Reason: " + exp.getMessage());
             
            HelpFormatter formatter = new HelpFormatter();
            formatter.printHelp("find", options);
        }       
    }
           
}
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

      } catch( ParseException exp ) {
          // oops, something went wrong
          System.err.println( "Parsing failed.  Reason: " + exp.getMessage() );
         
        HelpFormatter formatter = new HelpFormatter();
        formatter.printHelp( "list", options );
      }       
    }
           
}
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

    }

    public void printHelp() {
        HelpFormatter formatter = new HelpFormatter();
        String appName = this.appName == null ? "App" : this.appName;
        formatter.printHelp(appName, this.rules);
    }

    public static Command splunk() {
        return splunk(null);
    }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

    return opt;
  }

  public static void printHelp(Options opts) {
    HelpFormatter formatter = new HelpFormatter();
    formatter.printHelp("Generate a record with random data given an Avro schema", opts);
  }

  public static void main(String[] args) throws IOException, UnknownTypeException {

    // load and verify the options
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

    }

    if (!cmdline.hasOption(HOST_OPTION) || !cmdline.hasOption(PORT_OPTION)
        || !cmdline.hasOption(QUERIES_OPTION)) {
      HelpFormatter formatter = new HelpFormatter();
      formatter.printHelp(RunQueriesThrift.class.getName(), options);
      System.exit(-1);
    }

    String queryFile = cmdline.getOptionValue(QUERIES_OPTION);
    if (!new File(queryFile).exists()) {
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

    }

    if (!cmdline.hasOption(HOST_OPTION) || !cmdline.hasOption(PORT_OPTION)
        || !cmdline.hasOption(QUERIES_OPTION)) {
      HelpFormatter formatter = new HelpFormatter();
      formatter.printHelp(RunQueriesThrift.class.getName(), options);
      System.exit(-1);
    }

    String queryFile = cmdline.getOptionValue(QUERIES_OPTION);
    if (!new File(queryFile).exists()) {
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printHelp()

      System.exit(-1);
  }
 
  if (!cmdline.hasOption(HTML_OPTION)) {
      HelpFormatter formatter = new HelpFormatter();
      formatter.printHelp(HTMLStatusExtractor.class.getName(), options);
      System.exit(-1);
  }
 
  String html_filename = cmdline.getOptionValue(HTML_OPTION);
  BufferedReader html_file = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.