Rewrite the launcher CLI using Apache Commons CLI.
Improve launcher interactive setup.
Setup unit tests for the launcher.
This does slightly change the usage of the CLI. The new parser parses all command line arguments until -- for the launcher. Any arguments after -- will be passed to Chunky. Any unknown commands will return with Unrecognized option: -<command>.
Running java -jar ChunkyLauncher.jar --help:
usage: java -jar ChunkyLauncher.jar
Chunky Launcher 1.14.1, Copyright (c) 2010-2024 Jesper �qvist and Chunky Contributors
Chunky comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute
it under certain conditions. See the GNU General Public License v3 for more details.
--console Forces debug console to be opened
--dangerouslyDisableLibraryValidation Disable library validation. This can be dangerous!
-h,--help Show this help message
--javaOptions <options> Add a Java option when launching Chunky
--launcher Forces the launcher GUI to be shown
--setup Runs the interactive command-line launcher setup
--update <release channel> Update Chunky to the latest release
--verbose Enables verbose logging
--version Show the launcher version and exit
Command line options after -- are passed to Chunky.
For Chunky's command line help, run:
java -jar ChunkyLauncher.jar -- --help
Running java -jar ChunkyLauncher.jar --setup
Memory limit (MiB) [8192]:
Java options [--module-path "C:\Users\user\.chunky\javafx-sdk-17.0.2\lib" --add-modules javafx.controls,javafx.fxml]:
Update site [https://chunky-pr.lemaik.de/]:
Reload launcher metadata [Y/n]:
...Launcher is up to date!
33 release channels found.
This does slightly change the usage of the CLI. The new parser parses all command line arguments until
--
for the launcher. Any arguments after--
will be passed to Chunky. Any unknown commands will return withUnrecognized option: -<command>
.Running
java -jar ChunkyLauncher.jar --help
:Running
java -jar ChunkyLauncher.jar --setup