Package argparser

Examples of argparser.ArgParser$NameDesc


   * @param args
   *            The command line arguments.
   */
  public Main(String[] args)
    {
        final ArgParser parser = new ArgParser("java -jar venn.jar <arguments>");
       
        BooleanHolder   versionOpt = new BooleanHolder();
       
        StringHolder    configFile = new StringHolder(),
                        outConfigFile = new StringHolder(),
                        listFile = new StringHolder(),
                        gceFile = new StringHolder(),
                        seFile = new StringHolder(),
                        htGceFile = new StringHolder(),
                        filterFile = new StringHolder(),
                        optStateFile = new StringHolder(),
                        outFilterFile = new StringHolder(),
                        svgFile = new StringHolder(),
                        simFile = new StringHolder(),
                        profFile = new StringHolder();
    
        // create the parser and specify the allowed options ...
        parser.addOption("--version,-v %v #show VennMaster version", versionOpt);
        parser.addOption("--cfg %s #input configuration file", configFile);
        parser.addOption("--ocfg %s #output configuration file", outConfigFile);
        parser.addOption("--list %s #list input file", listFile);
        parser.addOption("--gce %s #GoMiner gene-category export file", gceFile);
        parser.addOption("--se %s #GoMiner summary export file", seFile);
        parser.addOption("--htgce %s #High-Throughput GoMiner gce file", htGceFile);
        parser.addOption("--filter %s #gene filter for GoMinor import.", filterFile);
        parser.addOption("--ofilter %s #output filter file", outFilterFile);
        parser.addOption("--optstate %s #output of the optimizer state",optStateFile);
        parser.addOption("--svg %s #generates an SVG file of the Venn diagram", svgFile);
        parser.addOption("--sim %s #output of the simulation profile",simFile);
        parser.addOption("--prof %s #output of the final error profile",profFile);
       
        parser.matchAllArgs(args);
       
        System.out.println( "VennMaster version "+
                            Constants.VERSION_MAJOR+"."+Constants.VERSION_MINOR+"."+Constants.VERSION_SUB+"  ("+Constants.VERSION_DATE+")");
        if( versionOpt.value )
        {
View Full Code Here

TOP

Related Classes of argparser.ArgParser$NameDesc

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.