* the command
*/
private static int processGlobalOptions( String[] args, GlobalOptions globalOptions )
{
final String getOptString = globalOptions.getOptString();
GetOpt go = new GetOpt( args, getOptString );
int ch;
while ( ( ch = go.getopt() ) != GetOpt.optEOF )
{
//System.out.println("Global option '"+((char) ch)+"',
// '"+go.optArgGet()+"'");
String arg = go.optArgGet();
boolean success = globalOptions.setCVSCommand( (char) ch, arg );
if ( !success )
{
throw new IllegalArgumentException( "Failed to set CVS Command: -" + ch + " = " + arg );
}
}
return go.optIndexGet();
}