code: public CommandLine parseString(String commandName, String args) {
          // Steal ants implementation for argument splitting. Handles quoted arguments with " or '.
          // Doesn't handle escape sequences with \
          String[] argArray = translateCommandline(args);
          DefaultCommandLine cl = createCommandLine();
          cl.setCommandName(commandName);
          parseInternal(cl, argArray, false);
          return cl;
      }
docs: Parses a string of all the command line options converting them into an array of arguments to pass to #parse(String..args)
  
  @param commandName The command name
  @param args The string
  @return The command line