Skip to content

Match complete option names in environment defaults - #617

Open
PHJ2000 wants to merge 1 commit into
cbeust:masterfrom
PHJ2000:fix-environment-option-name-boundary
Open

PHJ2000 wants to merge 1 commit into
cbeust:masterfrom
PHJ2000:fix-environment-option-name-boundary

Conversation

@PHJ2000

@PHJ2000 PHJ2000 commented Oct 5, 2026

Copy link
Copy Markdown

Require an option-name boundary before reading its environment-provided value. With only --foobar present, querying --foo now returns null instead of consuming the suffix as a value.

Covers overlapping names, exact matches, and a flag at the end of the input. ./gradlew check passes all 341 tests on Java 21.

Fixes #616.

This branch has not been deployed

No deployments
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.

EnvironmentVariableDefaultProvider matches prefixes of longer option names

1 participant