public class GfxdParser
extends org.apache.commons.cli.Parser
Parser implementation for GemFireXD that correctly handles a value
separator that is not a '='. This allows using a more generic property kind
like -J-D<property=value>.| Constructor and Description |
|---|
GfxdParser() |
| Modifier and Type | Method and Description |
|---|---|
protected String[] |
flatten(org.apache.commons.cli.Options options,
String[] arguments,
boolean stopAtNonOption)
This flatten method does so using the following rules:
If an
Option exists for the first character of the
arguments entry AND an Option does not exist
for the whole argument then add the first character as an
option to the processed tokens list e.g. |
protected String[] flatten(org.apache.commons.cli.Options options, String[] arguments, boolean stopAtNonOption)
Option exists for the first character of the
arguments entry AND an Option does not exist
for the whole argument then add the first character as an
option to the processed tokens list e.g. "-D" and add the rest of the entry
to the also.flatten in class org.apache.commons.cli.Parseroptions - The Options to parse the arguments by.arguments - The arguments that have to be flattened.stopAtNonOption - specifies whether to stop flattening when a non option has been
encounteredCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.