/** * Add a single argument. * * @param argument The argument to add * @param handleQuoting Add the argument with/without handling quoting * @return The command line itself */ public CommandLine addArgument(final String argument, final boolean handleQuoting) { if (argument == null) { return this; } // check if we can really quote the argument - if not throw an // IllegalArgumentException if (handleQuoting) { StringUtils.quoteArgument(argument); } arguments.add(new Argument(argument, handleQuoting)); return this; }