Package page.codeberg.friedolyn
Class CommandLineParameters
java.lang.Object
page.codeberg.friedolyn.CommandLineParameters
The command-line parameters passed to the program.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The path to the configuration file.private boolean
Whether to enable logging atDebugLevel.DEBUG
level.The academic degrees to fetch the grades for.private String
The folder where the configuration file and other application data shall be stored.private boolean
Whether to hide the graphical user interface (this has no effect on the [potentially headless] browser).private boolean
Prints a help message to the console.private char[]
The password to log in at the University of Jena's Friedolin system.private String
The username to log in at the University of Jena's Friedolin system.private boolean
Whether to enable logging atDebugLevel.INFO
level. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
help
private boolean helpPrints a help message to the console. -
username
The username to log in at the University of Jena's Friedolin system. -
password
private char[] passwordThe password to log in at the University of Jena's Friedolin system. -
degrees
-
directory
The folder where the configuration file and other application data shall be stored. -
configurationFile
The path to the configuration file. -
headless
private boolean headlessWhether to hide the graphical user interface (this has no effect on the [potentially headless] browser). -
verbose
private boolean verboseWhether to enable logging atDebugLevel.INFO
level. -
debug
private boolean debugWhether to enable logging atDebugLevel.DEBUG
level.
-
-
Constructor Details
-
CommandLineParameters
public CommandLineParameters()
-
-
Method Details
-
validate
public boolean validate()Validates the command-line parameters.- Returns:
true
if the parameters are valid, i.e. at least one of the following conditions is met:- the
--config
file is set or - all of the following parameters are set:
- the
-