Skip to content

Fix argument order when flags precede positional arguments - #294

Merged
g105b merged 5 commits into
masterfrom
237-argument-order
Nov 3, 2026
Merged

g105b merged 5 commits into
masterfrom
237-argument-order

Conversation

@g105b

@g105b g105b commented Nov 3, 2026

Copy link
Copy Markdown
Member

Fixes #237.

Flags previously consumed the following positional argument as a value. Reparse the original arguments using the selected command's parameter definitions before validation and value conversion, so options work before, after, or between positional arguments.

Adds regression coverage for long and short options, chained flags, and forced commands. All 259 tests pass, along with code style, mess detection, and PHPStan checks. PHPStan ran in single-process mode because the sandbox blocks its local socket.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 5 complexity · 0 duplication

Metric Results
Complexity 5
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@g105b
g105b merged commit 26119a6 into master Nov 3, 2026
54 checks passed
@g105b
g105b deleted the 237-argument-order branch November 3, 2026 18:14
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.

Argument order

1 participant