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 StringThe path to the configuration file.private booleanWhether to enable logging atDebugLevel.DEBUGlevel.The academic degrees to fetch the grades for.private StringThe folder where the configuration file and other application data shall be stored.private booleanWhether to hide the graphical user interface (this has no effect on the [potentially headless] browser).private booleanPrints a help message to the console.private char[]The password to log in at the University of Jena's Friedolin system.private StringThe username to log in at the University of Jena's Friedolin system.private booleanWhether to enable logging atDebugLevel.INFOlevel. -
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.INFOlevel. -
debug
private boolean debugWhether to enable logging atDebugLevel.DEBUGlevel.
-
-
Constructor Details
-
CommandLineParameters
public CommandLineParameters()
-
-
Method Details
-
validate
public boolean validate()Validates the command-line parameters.- Returns:
trueif the parameters are valid, i.e. at least one of the following conditions is met:- the
--configfile is set or - all of the following parameters are set:
- the
-