protected String [ ] fetchCommandParams ( CommandInterpreter interpreter ) { List < String > result = new ArrayList < String > ( ) ; String param ; while ( ( param = interpreter . nextArgument ( ) ) != null ) { result . add ( param ) ; } return result . toArray ( new String [ result . size ( ) ] ) ; }
Fetch command line arguments from source