public class CommandLineParser extends DefaultParser
cmd, currentOption, currentToken, expectedOpts, options, skipParsing, stopAtNonOption| Constructor and Description |
|---|
CommandLineParser(boolean handleConcatenatedOptions) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleConcatenatedOptions(String token)
Breaks
token into its constituent parts using the following algorithm. |
parse, parse, parse, parseprotected void handleConcatenatedOptions(String token) throws ParseException
DefaultParsertoken into its constituent parts using the following algorithm.
Option exists with that id.Option does exist then add that character prepended with "-" to the list of processed
tokens.Option can have an argument value and there are remaining characters in the token then add the
remaining characters as a token to the list of processed tokens.Option does NOT exist AND stopAtNonOption IS set then add the special
token "--" followed by the remaining characters and also the remaining tokens directly to the processed tokens
list.Option does NOT exist AND stopAtNonOption IS NOT set then add that
character prepended with "-".handleConcatenatedOptions in class DefaultParsertoken - The current token to be burst at the first non-Option encountered.ParseException - if there are any problems encountered while parsing the command line token.Copyright © 2018 JBoss by Red Hat. All rights reserved.