private static String [ ] extractCommandArgs ( String [ ] args , int commandIndex ) { String [ ] commandArgs = new String [ args . length - commandIndex - 1 ] ; System . arraycopy ( args , commandIndex + 1 , commandArgs , 0 , args . length - commandIndex - 1 ) ; return commandArgs ; }
Extracts the command - specific arguments from the all arguments array .