Examples of FlaggedOption


Examples of com.martiansoftware.jsap.FlaggedOption

    
    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");
     opt2.setHelp("A file containing a mapping between filenames and some key. " +
             "If specified, the query results will list the key instead of the filename.");
    
     Switch sw0 = new Switch("help")
         .setDefault("false")
         .setLongFlag("help");
     sw0.setHelp("Prints this message.");
    
     FlaggedOption opt4 = new FlaggedOption("numK")
     .setStringParser(JSAP.INTEGER_PARSER)
         .setRequired(false)
         .setDefault("50")
         .setLongFlag("numK");
    opt4.setHelp("Number of topics to run.");
    
    jsap.registerParameter(sw0);
    jsap.registerParameter(opt1);
    jsap.registerParameter(opt2);
    jsap.registerParameter(opt2a);
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.