code: private static String[] extractLauncherArgs(String[] args, int commandIndex) {
  	String[] launcherArgs = new String[commandIndex];
  
  	System.arraycopy(args, 0, launcherArgs, 0, commandIndex);
  
  	return launcherArgs;
      }
docs: Extracts the launcher arguments from the all arguments array.
  
  @param args
  - All arguments.
  @param commandIndex
  - Index of the command.
  @return - Launcher arguments.