8000
Skip to content

Fix CLI parser to ensure project file check only applies to non-option arguments#118683

Open
nikitalita wants to merge 1 commit intogodotengine:masterfrom
nikitalita:fix-cli-parser
Open

Fix CLI parser to ensure project file check only applies to non-option arguments#118683
nikitalita wants to merge 1 commit intogodotengine:masterfrom
nikitalita:fix-cli-parser

Conversation

@nikitalita
Copy link
Copy Markdown
Contributor

If a user-defined CLI flag takes in a parameter, and that parameter just so happens to end in project.godot (e.g. --txt-to-bin=/path/to/project.godot), the CLI parser currently interprets that as a request to load that project.

Changing it such that it only applies to non-option arguments (i.e. it doesn't begin with --) fixes the issue.

@nikitalita nikitalita requested a review from a team as a code owner April 17, 2026 13:57
@Chaosus Chaosus added this to the 4.x milestone Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0