case classParameterKey(key: String, shortAlias: Boolean, hasPrefix: Boolean = true) extends Product with Serializable
A data class to represent the key of a parameter.
Some CLI applications distinguish between normal (long) parameter names
and short alias names. On the command line, typically a different prefix
is used to indicate a normal name or its alias (e.g. "--" for the normal
names and "-" for short names).
To support such constellations, a plain string as parameter key is
insufficient. Therefore, this class is used to represent the keys of
parameters. It makes it explicit whether a string is to be interpreted as
normal or short key.
There are even keys that do not have a prefix at all: keys for input
parameters. Such keys can be modeled using this class as well.
key
the string-based key
shortAlias
flag whether this key is a short alias
hasPrefix
flag whether this key requires a prefix
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
A data class to represent the key of a parameter.
Some CLI applications distinguish between normal (long) parameter names and short alias names. On the command line, typically a different prefix is used to indicate a normal name or its alias (e.g. "--" for the normal names and "-" for short names).
To support such constellations, a plain string as parameter key is insufficient. Therefore, this class is used to represent the keys of parameters. It makes it explicit whether a string is to be interpreted as normal or short key.
There are even keys that do not have a prefix at all: keys for input parameters. Such keys can be modeled using this class as well.
the string-based key
flag whether this key is a short alias
flag whether this key requires a prefix