private static Configuration parseCommandLine(final String[] args)
      throws BindException, IOException {
    final JavaConfigurationBuilder confBuilder = Tang.Factory.getTang().newConfigurationBuilder();
    final CommandLine cl = new CommandLine(confBuilder);
    cl.registerShortNameOfClass(Local.class);
    cl.registerShortNameOfClass(Piggyback.class);
    cl.registerShortNameOfClass(NumEvaluators.class);
    cl.registerShortNameOfClass(NumTasks.class);
    cl.registerShortNameOfClass(Delay.class);
    cl.registerShortNameOfClass(JobId.class);
    cl.processCommandLine(args);
    return confBuilder.build();
  }
private static Configuration parseCommandLine ( final String [ ] args ) throws BindException , IOException { final JavaConfigurationBuilder confBuilder = Tang . Factory . getTang ( ) . newConfigurationBuilder ( ) ; final CommandLine cl = new CommandLine ( confBuilder ) ; cl . registerShortNameOfClass ( Local . class ) ; cl . registerShortNameOfClass ( Piggyback . class ) ; cl . registerShortNameOfClass ( NumEvaluators . class ) ; cl . registerShortNameOfClass ( NumTasks . class ) ; cl . registerShortNameOfClass ( Delay . class ) ; cl . registerShortNameOfClass ( JobId . class ) ; cl . processCommandLine ( args ) ; return confBuilder . build ( ) ; }
Parse the command line arguments.

@param args command line arguments, as passed to main()
@return Configuration object.
@throws BindException configuration error.
@throws IOException   error reading the configuration.