public class CommandLineArguments extends Object
Constructor and Description |
---|
CommandLineArguments()
Construct empty arg set.
|
Modifier and Type | Method and Description |
---|---|
void |
addArg(String arg)
Append an option.
|
void |
addArg(String arg1,
String arg2)
Append two arguments (e.g.
|
List<String> |
getArgs() |
String |
getCommandsFile()
Generate the Commands file and return the filename to it.
|
Iterator<String> |
iterator() |
void |
setUseCommandsFile(boolean useCommandsFile) |
boolean |
useCommandsFile() |
public void addArg(String arg)
arg
- the argument.public void addArg(String arg1, String arg2)
arg1
- first argarg2
- second arg.public String getCommandsFile() throws IOException
IOException
- error writing the file.public void setUseCommandsFile(boolean useCommandsFile)
useCommandsFile
- The useCommandsFile to set.public boolean useCommandsFile()
Copyright © 2005–2015 Codehaus. All rights reserved.