Examples of messagePrinted()


Examples of com.martiansoftware.jsap.SimpleJSAP.messagePrinted()

        }
    );
   

    JSAPResult jsapResult = jsap.parse( arg );
    if ( jsap.messagePrinted() ) return;
   
    /*String uri[] = null;
    if ( jsapResult.getString( "uris" ) != null ) {
      Collection<MutableString> lines = new FileLinesCollection( jsapResult.getString( "uris" ), "ASCII" ).allLines();
      uri = new String[ lines.size() ];
View Full Code Here

Examples of com.martiansoftware.jsap.SimpleJSAP.messagePrinted()

          new FlaggedOption( "logInterval", JSAP.LONG_PARSER, Long.toString( ProgressLogger.DEFAULT_LOG_INTERVAL ), JSAP.NOT_REQUIRED, 'l', "log-interval", "The minimum time interval between activity logs in milliseconds." ),
          new UnflaggedOption( "basename", JSAP.STRING_PARSER, JSAP.REQUIRED, "The basename for the collection." ),
        }
    );
    JSAPResult jsapResult = jsap.parse( arg );
    if ( jsap.messagePrinted() ) return;

    DocumentSequence documentSequence = Scan.getSequence( jsapResult.getString( "sequence" ), jsapResult.getClass( "factory" ), jsapResult.getStringArray( "property" ), jsapResult.getInt( "delimiter" ), LOGGER );
    final ProgressLogger progressLogger = new ProgressLogger( LOGGER, "documents" );
    if ( documentSequence instanceof DocumentCollection ) progressLogger.expectedUpdates = ((DocumentCollection)documentSequence).size();
    final ZipDocumentCollectionBuilder zipDocumentCollectionBuilder = new ZipDocumentCollectionBuilder( jsapResult.getString( "basename" ), documentSequence.factory(), !jsapResult.getBoolean( "approximated") );
View Full Code Here

Examples of com.martiansoftware.jsap.SimpleJSAP.messagePrinted()

            new Switch("query", 'q', "true", "Enable query cli"),
            new Switch("randomquery", 'r', "randomquery",
                "Randomly query the influenza to test that the cache is fully populated"),
            new FlaggedOption("nfile", JSAP.STRING_PARSER, null, JSAP.NOT_REQUIRED, 'n', JSAP.NO_LONGFLAG,
                "Location of influenza_na.dat") });
    if (jsap.messagePrinted())
      System.exit(1);

    JSAPResult config = jsap.parse(args);
    InfluenzaDataLoader fluDemo = new InfluenzaDataLoader();
    try {
View Full Code Here

Examples of com.martiansoftware.jsap.SimpleJSAP.messagePrinted()

   protected JSAPResult parseParameters(String[] args) throws Exception {
      SimpleJSAP jsap = buildCommandLineOptions();

      JSAPResult config = jsap.parse(args);
      if (!config.success() || jsap.messagePrinted()) {
         Iterator<?> messageIterator = config.getErrorMessageIterator();
         while (messageIterator.hasNext()) System.err.println(messageIterator.next());
         System.err.println(jsap.getHelp());
         return null;
      }
View Full Code Here

Examples of com.martiansoftware.jsap.SimpleJSAP.messagePrinted()

            new Switch("query", 'q', "true", "Enable query cli"),
            new Switch("randomquery", 'r', "randomquery",
                "Randomly query the influenza to test that the cache is fully populated"),
            new FlaggedOption("nfile", JSAP.STRING_PARSER, null, JSAP.NOT_REQUIRED, 'n', JSAP.NO_LONGFLAG,
                "Location of influenza_na.dat") });
    if (jsap.messagePrinted())
      System.exit(1);

    JSAPResult config = jsap.parse(args);
    InfluenzaDataLoader fluDemo = new InfluenzaDataLoader();
    try {
View Full Code Here

Examples of com.martiansoftware.jsap.SimpleJSAP.messagePrinted()

          "One or more names of people you would like to greet." )
      }
    );
   
    JSAPResult config = jsap.parse(args)
    if ( jsap.messagePrinted() ) System.exit( 1 );
       
    String[] names = config.getStringArray("name");
    String[] languages = config.getStringArray("verbose");
    for (int i = 0; i < languages.length; ++i) {
      System.out.println("language=" + languages[i]);
View Full Code Here

Examples of com.martiansoftware.jsap.SimpleJSAP.messagePrinted()

            new Switch("query", 'q', "true", "Enable query cli"),
            new Switch("randomquery", 'r', "randomquery",
                "Randomly query the influenza to test that the cache is fully populated"),
            new FlaggedOption("nfile", JSAP.STRING_PARSER, null, JSAP.NOT_REQUIRED, 'n', JSAP.NO_LONGFLAG,
                "Location of influenza_na.dat") });
    if (jsap.messagePrinted())
      System.exit(1);

    JSAPResult config = jsap.parse(args);
    InfluenzaDataLoader fluDemo = new InfluenzaDataLoader();
    try {
View Full Code Here

Examples of com.martiansoftware.jsap.SimpleJSAP.messagePrinted()

    // parse the command line options
    JSAPResult config = jsap.parse(args);

    // Bail out if they asked for the --help
    if (jsap.messagePrinted()) {
      System.exit(1);
    }

    if (config.getBoolean(BSC.VERSION)) {
View Full Code Here

Examples of com.martiansoftware.jsap.SimpleJSAP.messagePrinted()

          new Switch ("condOnLastSegregating", JSAP.NO_SHORTFLAG, "condOnLastSegregating", "When set, condition on the last sample being segregating."),
              }
          );

    JSAPResult config = jsap.parse(args);
    if (jsap.messagePrinted()) { System.exit(1); }
   
    // what about the binomials
    boolean ignoreBinomials = config.getBoolean ("ignoreBinomials");
    // what about multiplexing
    boolean multiplex = config.getBoolean ("multiplex");
View Full Code Here

Examples of com.martiansoftware.jsap.SimpleJSAP.messagePrinted()

   protected JSAPResult parseParameters(String[] args) throws Exception {
      SimpleJSAP jsap = buildCommandLineOptions();

      JSAPResult config = jsap.parse(args);
      if (!config.success() || jsap.messagePrinted()) {
         Iterator<?> messageIterator = config.getErrorMessageIterator();
         while (messageIterator.hasNext()) System.err.println(messageIterator.next());
         System.err.println(jsap.getHelp());
         return 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.