public class CliOptions extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.commons.cli2.CommandLine |
cmdLine |
private org.apache.commons.cli2.Option |
configFileOpt |
private static int |
LINEWIDTH |
private org.apache.commons.cli2.Group |
options |
private static String |
SPACE |
Constructor and Description |
---|
CliOptions(String[] args)
Construct and provide GNU-compatible Options.
|
Modifier and Type | Method and Description |
---|---|
private void |
buildCommandLineArguments()
Construct and provide GNU-compatible Options.
|
String |
getConfigurationFileName()
Get the name of the configuration file specified on the command line.
|
private void |
validateCommandLineArguments()
Perform validation the command line arguments.
|
private org.apache.commons.cli2.Group options
private static final int LINEWIDTH
private static final String SPACE
private org.apache.commons.cli2.CommandLine cmdLine
private org.apache.commons.cli2.Option configFileOpt
public CliOptions(String[] args)
args
- the command line arguments.private void buildCommandLineArguments()
private void validateCommandLineArguments()
public final String getConfigurationFileName()
Copyright © 2015 University of Glasgow. All rights reserved.