Package de.hsh.graja.util.cli
Class CliConfig
java.lang.Object
de.hsh.graja.util.cli.CliConfig
Contains various strings that will be used by the CLI library in outputs.
- header: Headline above various help pages. E. g.
"Calculator version 1.7"
- programName: The short name of the program. E. g.
"Calculator"
- startModulepathOptionTemplate: The --module-path command line option to start your program as a template without any options, e. g.
"<path-to-calculator.jar>"
- startModulepathOptionExample: The --module-path command line option to start your program as an example without any options, e. g.
"/usr/local/calculator.jar"
. Usually you put actual path of the running program into this property. - startAddModulesOption: The --add-modules command line option, e. g.
com.calc
. - startModuleOption: The --module command line option, e. g.
com.calc
. - systemPropertyLoggingLevel: the name of the system property that controls the
Logging.LoggingLevel
. E. g."org.calculator.loglevel"
. This value is used to inform the user in case of errors, how to increase the displayed information by specifiying this system property with value DEBUG.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllModuleOptionsExample
(String additionalModulePath, String additionalAddModules) getAllModuleOptionsTemplate
(String additionalModulePath, String additionalAddModules) void
void
setProgramName
(String programName) void
setStartModulepathOptionExample
(String startModulepathOptionExample) void
setStartModulepathOptionTemplate
(String startModulepathOptionTemplate) void
setSystemPropertyLoggingLevel
(String systemPropertyLoggingLevel) toString()
-
Constructor Details
-
CliConfig
-
-
Method Details
-
getProgramName
-
setProgramName
-
getHeader
-
setHeader
-
getStartModulepathOptionTemplate
-
setStartModulepathOptionTemplate
-
getStartModulepathOptionExample
-
setStartModulepathOptionExample
-
getAllModuleOptionsTemplate
-
getAllModuleOptionsExample
-
getSystemPropertyLoggingLevel
-
setSystemPropertyLoggingLevel
-
toString
-