Repository navigation
Fix the launcher starting after it shows the command-line help - #3099
Open
moss-orbit-9f339e wants to merge 1 commit into
Open
moss-orbit-9f339e wants to merge 1 commit into
moss-orbit-9f339e wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, andMainexits, the same way as its existing early exit for a folder that is not writable.I copied the argument parser and the lines of
Mainthat 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_lobbywith and without a tag,dev,--helpas the second argument) gave the same result on both.Written entirely by Claude Code.
🤖 Generated with Claude Code