Skip to content

Conversation

@leMaik
Copy link
Member

@leMaik leMaik commented Dec 31, 2025

…and move the release channel into a distinct option.

This builds upon #1682 (which was never released, so the options change doesn't break anything) and allows stuff like java -jar ChunkyLauncher.jar --releaseChannel snapshot --chunkyVersion latest to launch the latest snapshot, even if the stable channel is the currently selected channel.

Also you can now download and launch PR builds with a single command ✨

java -jar ChunkyLauncher.jar \
  --updateSite https://chunky-pr.lemaik.de \
  --releaseChannel pr-1859 \
  --update \
  --chunkyVersion latest

@leMaik leMaik requested a review from ThatRedox December 31, 2025 00:11
@leMaik
Copy link
Member Author

leMaik commented Dec 31, 2025

The second example above doesn't work because --update exits. I see how just updating might be useful.

Maybe we should switch to some library that supports subcommands, like picocli or JCommander?

@ThatRedox
Copy link
Member

How would subcommands help?

@leMaik
Copy link
Member Author

leMaik commented Dec 31, 2025

ChunkyLauncher.jar update to update and then exit
ChunkyLauncher.jar [launch] --update to update (optionally) and then start

@ThatRedox
Copy link
Member

I think there should be a way to do that as is, but if you want to switch to a better CLI parsing library I'm not against it.

@leMaik
Copy link
Member Author

leMaik commented Dec 31, 2025

@ThatRedox I found a workaround 🎉

@leMaik leMaik linked an issue Dec 31, 2025 that may be closed by this pull request
leMaik added 2 commits January 2, 2026 00:57
…e the release channel into a distinct option.
… launching with --update, bump the copyright year in the launcher.
@leMaik leMaik force-pushed the launcher-launch-latest branch from 2dd7c5b to 766312d Compare January 2, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CLI argument to launcher CLI to specify which version to launch.

2 participants