public class ArgumentParser
The Argument Parser class makes use of the Apache Commons CLI to parse the Arguments for the themes.moe Downloader CLI
Constructor and Description |
---|
ArgumentParser(java.lang.String[] args)
The Argument Parser class makes use of the Apache Commons CLI to parse the
Arguments for the themes.moe Downloader CLI
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getArgs()
The arguments passed to the main method
|
org.apache.commons.cli.Options |
getOptions() |
org.apache.commons.cli.CommandLine |
parse()
Parses the arguments
|
public ArgumentParser(java.lang.String[] args)
The Argument Parser class makes use of the Apache Commons CLI to parse the Arguments for the themes.moe Downloader CLI
args
- The arguments passed to the main methodargs
- The arguments passed to the main methodpublic org.apache.commons.cli.Options getOptions()
public org.apache.commons.cli.CommandLine parse()
Parses the arguments
The arguments are also validated to make sure that only valid combinations of arguments are passed.
public java.lang.String[] getArgs()
The arguments passed to the main method