/**
  * Generate a formatted string. Note that a file name for each input and output must have already
  * been set with: {@code setPreparedPathForInput(int, String)} or {@code
  * setPreparedPathForOutput(int,String)}.
  *
  * @return The formatted string.
  * @throws IllegalArgumentException Thrown if a path hasn't been set fo one of the input or output
  *     files.
  */
 public String toFormattedString() throws IllegalArgumentException {
   String out = "";
   for (Iterator<CommandArgument> iterator = arguments.iterator(); iterator.hasNext(); ) {
     CommandArgument comp = iterator.next();
     out += comp.toFormattedString();
     if (comp.followedBySpace()) {
       out += " ";
     }
   }
   return out;
 }
 /**
  * (Re)generate the config string.
  *
  * @return the config string.
  */
 public String toConfigString() {
   String out = "";
   for (Iterator<CommandArgument> iterator = arguments.iterator(); iterator.hasNext(); ) {
     CommandArgument comp = iterator.next();
     out += comp.toConfigString();
     if (comp.followedBySpace()) {
       out += " ";
     }
   }
   return out;
 }