Skip to content

Fix boolean flags consuming positional arguments - #33

Draft
donatj wants to merge 2 commits into
masterfrom
fix/bool-space-values
Draft

donatj wants to merge 2 commits into
masterfrom
fix/bool-space-values

Conversation

@donatj

@donatj donatj commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Boolean flags consumed a following positional argument as a boolean value. bin --foo soup raised a type error.

Boolean flags now only accept explicit values through =. --foo soup sets foo to true and preserves soup. The README and tests cover --foo=true soup and --foo=false soup.

Validation:

  • ./vendor/bin/phpunit
  • ./vendor/bin/mddoc --dry-run=true
  • composer validate --strict

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