Class Main

java.lang.Object
javafx.application.Application
page.codeberg.friedolyn.Main

public class Main extends javafx.application.Application
The main class of the application.

Usage

  • --help or -h: Prints a help message to the console.
  • --user or -u: The username to log in at the University of Jena's Friedolin system. Required if no configuration file is specified.
  • --password or -p: The password to log in at the University of Jena's Friedolin system. Required if no configuration file is specified.
  • --degrees or -d: The Configuration.setAcademicDegrees(Set) academic degrees} to fetch the grades for. Required if no configuration file is specified.
  • --directory or -D: The folder where the configuration file and other application data shall be stored.
  • --config or -c: The path to the configuration file. If this is specified, no other parameters are required. In fact, all other parameters are ignored. For more information on how the configuration file must be formatted, see configuration.schema.json.
  • --verbose: Overrides the debug level with INFO, but only if it was not set to DEBUG, because DEBUG is more verbose than INFO.
  • --debug: Overrides the debug level with DEBUG.
If neither a --config file nor the --directory is specified, then the default directory will be attempted to be used, which is the one most recently used or, if there is none, ~/.friedolyn. The configuration file in the default directory is expected to be named config.json, configuration.json or friedolyn.json.

If the --config file does not specify the app directory, then the parent directory of the configuration file will be used. If that is not possible, the default directory will be attempted to be used.

More configuration options are available when using a --config file. See configuration.schema.json for more info.