icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java
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;
    }
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.

@param args
- All arguments.
@param commandIndex
- Index of the command.
@return - Command-specific arguments.