Skip to content

Fix the launcher starting after it shows the command-line help - #3099

Open
moss-orbit-9f339e wants to merge 1 commit into
ZeroK-RTS:masterfrom
moss-orbit-9f339e:launcher-help-exit
Open

moss-orbit-9f339e wants to merge 1 commit into
ZeroK-RTS:masterfrom
moss-orbit-9f339e:launcher-help-exit

Conversation

@moss-orbit-9f339e

Copy link
Copy Markdown
Contributor

Zero-K.exe --help (or -h, /?) shows the usage message, but when the player closes it the launcher keeps going and uses the switch as the menu's Rapid tag. A standalone install then checks for updates and fails to find a menu with that tag; a Steam install starts normally. The parser now returns false after it shows the help, and Main exits, the same way as its existing early exit for a folder that is not writable.

I copied the argument parser and the lines of Main that call it from master and from this branch into a small program and ran it under Mono with 12 argument lists. For the 5 help cases (--help, -h, /?, help with an extra argument, help after +connect_lobby), master continued into startup with the switch as the tag and the branch stopped after the help. The 7 other lists (no arguments, a tag, a tag and an engine, +connect_lobby with and without a tag, dev, --help as the second argument) gave the same result on both.

Written entirely by Claude Code.

🤖 Generated with Claude Code

Starting Zero-K.exe with --help, -h or /? showed the usage message, but
after the player closed it the launcher went on and used the switch as
the menu's Rapid tag. A standalone install then checked for updates and
failed to find that tag; a Steam install started normally. The parser
now reports that it showed help, and Main exits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant