chunky-dev / chunky

A path tracer to create realistic images of your Minecraft worlds.
https://chunky-dev.github.io/docs
GNU General Public License v3.0
644 stars 76 forks source link

Improve launcher command line interface. #1682

Open ThatRedox opened 8 months ago

ThatRedox commented 8 months ago

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.
ThatRedox commented 8 months ago

Launcher jar: launcher-2.5.0-DEV.319.g6d82b1b.jar.zip

leMaik commented 4 days ago

Looks great, I'll rebase and merge for the next Launcher version.