public boolean parseArgs(String[] args,Main main){
  String explicitVersion=null;
  for (int i=0; i < args.length; i++) {
    String arg=args[i];
    if (versionOptions.containsKey(arg)) {
      if (explicitVersion != null && !explicitVersion.equals(arg)) {
        main.error("rmic.cannot.use.both",explicitVersion,arg);
        return false;
      }
      explicitVersion=arg;
      version=versionOptions.get(arg);
      args[i]=null;
    }
  }
  return true;
}

public boolean parseArgs ( String [ ] args , Main main ) { String explicitVersion = null ; for ( int i = 0 ; i < args . length ; i ++ ) { String arg = args [ i ] ; if ( versionOptions . containsKey ( arg ) ) { if ( explicitVersion != null && ! explicitVersion . equals ( arg ) ) { main . error ( "rmic.cannot.use.both" , explicitVersion , arg ) ; return false ; } explicitVersion = arg ; version = versionOptions . get ( arg ) ; args [ i ] = null ; } } return true ; }
the jrmp generator recognizes command line options for selecting the jrmp stub protocol version to generate classes for . only one such option is allowed .
