Package com.martiansoftware.jsap

Examples of com.martiansoftware.jsap.UnflaggedOption


            .setLongFlag("verbose");
   
    sw1.setHelp("Requests verbose output.");
    jsap.registerParameter(sw1);
   
    UnflaggedOption opt2 = new UnflaggedOption("name")
                .setStringParser(JSAP.STRING_PARSER)
                .setDefault("World")
                .setRequired(true)
                .setGreedy(true);
   
    opt2.setHelp("One or more names of people you would like to greet.");
    jsap.registerParameter(opt2);
   
    JSAPResult config = jsap.parse(args)

    if (!config.success()) {
View Full Code Here


  public void setUsageName(String usageName) {
    this.usageName = usageName;
  }
 
  public Parameter getConfiguredParameter() {
    UnflaggedOption result = new UnflaggedOption(getId());
    super.configure(result);
    result.setGreedy(isGreedy());
    result.setListSeparator(getListSeparator());
    result.setList(isList());
    result.setRequired(isRequired());
    result.setUsageName(getUsageName());

    if (stringParser != null) {
      result.setStringParser(stringParser.getConfiguredStringParser());
    }
   
    return (result);
  }
View Full Code Here

   
    // Use the JSAP library to intelligently set up and parse our command
    // line options
    JSAP jsap = new JSAP();

    UnflaggedOption opt1 = new UnflaggedOption("inDir").setStringParser(
        JSAP.STRING_PARSER).setRequired(true);
    opt1.setHelp("The input directory containing files on which to build the index");

    UnflaggedOption opt2 = new UnflaggedOption("outIndexDir").setStringParser(
        JSAP.STRING_PARSER).setRequired(true);
    opt2.setHelp("The output directory for the resultant Lucene index");
   
    UnflaggedOption opt2a = new UnflaggedOption("outLDAIndex").setStringParser(
        JSAP.STRING_PARSER).setRequired(true);
    opt2a.setHelp("The output directory for the resultant LDA index");

    FlaggedOption opt3 = new FlaggedOption("fileCodes")
        .setStringParser(JSAP.STRING_PARSER).setRequired(false)
        .setLongFlag("fileCodes");
    opt3.setHelp("A file containing a mapping between filenames and some key. "
View Full Code Here

   
    // Use the JSAP library to intelligently set up and parse our command line options
     JSAP jsap = new JSAP();
    
     UnflaggedOption opt1 = new UnflaggedOption("inDir")
         .setStringParser(JSAP.STRING_PARSER)
         .setRequired(true);
     opt1.setHelp("The input directory containing files on which to build the index");
    
     UnflaggedOption opt2 = new UnflaggedOption("outDir")
         .setStringParser(JSAP.STRING_PARSER)
         .setRequired(true);
     opt2.setHelp("The output directory for the resultant Lucene index");
    
    UnflaggedOption opt2a = new UnflaggedOption("outLDAIndex").setStringParser(
          JSAP.STRING_PARSER).setRequired(true);
    opt2a.setHelp("The output directory for the resultant LDA index");
    
     FlaggedOption opt3 = new FlaggedOption("fileCodes")
     .setStringParser(JSAP.STRING_PARSER)
         .setRequired(false)
         .setLongFlag("fileCodes");
View Full Code Here

    // Use the JSAP library to intelligently set up and parse our command
    // line options
    JSAP jsap = new JSAP();
   
    UnflaggedOption opt0 = new UnflaggedOption("indexDir").setStringParser(
        JSAP.STRING_PARSER).setRequired(true);
    opt0.setHelp("The directory containing the pre-build Lucene index.");

    UnflaggedOption opt1 = new UnflaggedOption("queryDir").setStringParser(
        JSAP.STRING_PARSER).setRequired(true);
    opt1.setHelp("The input directory containing queries to run against the specified index.");

    UnflaggedOption opt2 = new UnflaggedOption("resultsDir").setStringParser(
        JSAP.STRING_PARSER).setRequired(true);
    opt2.setHelp("The output directory for the results of each query: one file per original query in queryDirName.");

    FlaggedOption opt3 = new FlaggedOption("weightingCode")
        .setStringParser(JSAP.INTEGER_PARSER).setRequired(false)
        .setLongFlag("weightingCode").setDefault("1");
    opt3.setHelp("An integer code that specifies the term weighting option that should be used. "
View Full Code Here

   
    // Use the JSAP library to intelligently set up and parse our command
    // line options
    JSAP jsap = new JSAP();
   
    UnflaggedOption opt0 = new UnflaggedOption("indexDir").setStringParser(
        JSAP.STRING_PARSER).setRequired(true);
    opt0.setHelp("The directory containing the pre-build Lucene index.");
   
    UnflaggedOption opt0a = new UnflaggedOption("LDAIndexDir").setStringParser(
        JSAP.STRING_PARSER).setRequired(true);
    opt0a.setHelp("The directory containing the pre-build LDA index.");

    UnflaggedOption opt1 = new UnflaggedOption("queryDir").setStringParser(
        JSAP.STRING_PARSER).setRequired(true);
    opt1.setHelp("The input directory containing queries to run against the specified index.");

    UnflaggedOption opt2 = new UnflaggedOption("resultsDir").setStringParser(
        JSAP.STRING_PARSER).setRequired(true);
    opt2.setHelp("The output directory for the results of each query: one file per original query in queryDirName.");

    FlaggedOption opt3 = new FlaggedOption("K")
        .setStringParser(JSAP.INTEGER_PARSER).setRequired(false)
        .setLongFlag("K").setDefault("0");
    opt3.setHelp("If multiple LDA configuration were run (i.e., multiple Ks), then specify which one to use."
View Full Code Here

TOP

Related Classes of com.martiansoftware.jsap.UnflaggedOption

Copyright © 2018 www.massapicom. 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.