Package com.powsybl.tools.autocompletion
Class BashOption
java.lang.Object
com.powsybl.tools.autocompletion.BashOption
Simplified option model for completion script generation.
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at gmail.com>
-
Constructor Summary
ConstructorDescriptionBashOption
(String name) BashOption
(String name, String argName) BashOption
(String name, String argName, OptionType type) -
Method Summary
Modifier and TypeMethodDescriptionstatic List<BashOption>
convert
(org.apache.commons.cli.Options commonsCliOptions) getName()
Full option name, including the "-" or "--" prefixObject[]
getType()
boolean
hasArg()
boolean
isDir()
boolean
isEnum()
boolean
isFile()
boolean
void
setType
(OptionType type)
-
Constructor Details
-
BashOption
-
BashOption
-
BashOption
-
-
Method Details
-
convert
-
getName
Full option name, including the "-" or "--" prefix -
hasArg
public boolean hasArg() -
getArgName
-
getType
-
setType
-
isFile
public boolean isFile() -
isDir
public boolean isDir() -
isHostname
public boolean isHostname() -
isEnum
public boolean isEnum() -
getPossibleValues
-