• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

valkyrjaio / valkyrja-php / 30327938378
100%

Build:
DEFAULT BRANCH: 26.x
Ran 28 Jul 2026 04:11AM UTC
Jobs 1
Files 1138
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Jul 2026 04:09AM UTC coverage: 100.0%. Remained the same
30327938378

push

github

web-flow
[Cli] Treat a bare double dash as the end-of-options marker and a lone dash as an operand (#938)

# Description

Implements the POSIX end-of-options marker and fixes a lone `-` being
rejected.

`InputFactory` decided option-vs-operand with a bare `startsWith('-')`,
so two
conventional spellings were hard errors that took the whole command line
with
them:

```
myapp cmd -- --not-an-option   → CliInteractionInvalidNonEmptyValueException
myapp cmd -- file.txt          → CliInteractionInvalidNonEmptyValueException
myapp cmd -                    → CliInteractionInvalidNonEmptyValueException
```

`--` reached `OptionFactory`, which stripped the dashes, got an empty
name, and
threw. A bare `-` did the same.

**`--` is now the end-of-options marker.** It is consumed — it never
becomes an
operand itself — and every arg after it is an operand no matter how many
dashes
it starts with. This is how a caller passes a literal `--verbose` as
data, or a
filename that begins with a dash. A *second* `--` is therefore an
ordinary
operand, since option parsing has already ended.

**A lone `-` is now an operand.** By universal Unix convention (POSIX
Utility
Syntax Guidelines) a single dash names standard input — `cat -`, `sort
file -`,
`tar -xf -`. It is an operand, not an option. What "standard input"
means is the
command's business; the parser's job is only to stop treating it as an
option.

Positional semantics are unchanged: the command-name slot still works
exactly as
before, so a `--` spelled in that slot is consumed and the default
command name
stands (the same way an option spelled there already behaved), while a
lone `-`
in that slot fills it, because it is an operand.

Handing `--` or `-` directly to `OptionFactory` still throws — that is
correct at
that level, and those unit tests are unchanged. Only `InputFactory`,
which decides
what is an option in the first place, changed.

Found via the request/command mapping-fidelity tests, which pinned both
spellings
as c... (continued)

6 of 0 new or added lines in 0 files covered. (NaN%)

12594 of 12594 relevant lines covered (100.0%)

23.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30327938378.1 28 Jul 2026 04:11AM UTC 1138
100.0
GitHub Action Run
Source Files on build 30327938378
  • Tree
  • List 1138
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30327938378
  • e09be414 on github
  • Prev Build on 26.x (#30325942525)
  • Next Build on 26.x (#30328352504)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc