Examples of printUsageAndExit()


Examples of edu.byu.ece.rapidSmith.bitstreamTools.examples.support.BitstreamOptionParser.printUsageAndExit()

        options.has(AND_STRING) ||options.has(NOT_STRING) ||options.has(OR_STRING)
        || options.has(APPEND_OPTION_STRING)) {

      if (!options.has("r")) {
        System.err.println("Operational bitfile name needed for bitstream operation");
        cmdLineParser.printUsageAndExit();
      }
      String operationalBitstreamFileName = (String) options.valueOf("r");
     
      // load operational bitstream (this is an odd way of doing it but I am copying Ben's code)
      Bitstream opBitstream = BitstreamParser.parseBitstreamExitOnError(operationalBitstreamFileName);     
View Full Code Here

Examples of org.openbp.common.commandline.CommandLineParser.printUsageAndExit()

        cp.parse(args);
      }
      catch (CommandLineParserException e)
      {
        System.err.println(e.getMessage());
        cp.printUsageAndExit();
      }

      processor = new SyncModel();
      processor.setProcessServer(new ProcessServerFactory().createProcessServer("OpenBP-SyncModel-Hibernate.spring.xml"));
View Full Code Here

Examples of org.openbp.common.commandline.CommandLineParser.printUsageAndExit()

        cp.parse(args);
      }
      catch (CommandLineParserException e)
      {
        System.err.println(e.getMessage());
        cp.printUsageAndExit();
      }

      HibernateDDLGenerator generator = new HibernateDDLGenerator();

      generator.setDialect(cp.getStringOption("Dialect"));
View Full Code Here

Examples of org.openbp.common.commandline.CommandLineParser.printUsageAndExit()

      generator.setDdlCreateFileName(cp.getStringOption("DdlCreateFile"));
      generator.setDdlDropFileName(cp.getStringOption("DdlDropFile"));

      if (generator.getDdlCreateFileName() == null && generator.getDdlDropFileName() == null)
      {
        cp.printUsageAndExit();
      }

      generator.generate();

      System.exit(0);
View Full Code Here

Examples of org.openbp.common.commandline.CommandLineParser.printUsageAndExit()

      }
      catch (CommandLineParserException e)
      {
        System.err.println(e.getMessage());
        System.err.println("");
        cp.printUsageAndExit();
      }
    }

    if (first)
    {
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.