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

carapace-sh / carapace-pflag / 30107650285
56%

Build:
DEFAULT BRANCH: master
Ran 24 Jul 2026 04:01PM UTC
Jobs 1
Files 42
Run time 1min
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

24 Jul 2026 04:00PM UTC coverage: 54.289% (+0.2%) from 54.124%
30107650285

push

github

web-flow
add ArgumentStyle field to Flag to control accepted argument variants (#29)

* add ArgumentStyle field to Flag to control accepted argument variants

Add a new ArgumentStyle field to the Flag struct that allows controlling
which flag argument variants are accepted: next argument (-f arg), delimiter
attached (-f=arg), or directly attached (-farg). Default is AnyArgumentStyle
which accepts all variants.

This is useful for commands that require the argument to be attached to the
flag and only accept that variant.

Assisted-by: Crush:minimax-m2.7

* change ArgumentStyle from enum to bitmask for flexible combination

ArgumentStyle is now a uint bitmask instead of an enum, allowing
flexible combinations like AcceptDelimited | AcceptNext.
Zero value (default) accepts all variants.

Assisted-by: Crush:minimax-m2.7

* added methods

* embed ArgumentStyle

* add AGENTS.md documenting repo for agents

Covers build/test/lint commands, the per-type method matrix,
fork-specific Flag extensions (Mode, Nargs, OptargDelimiter,
ArgumentStyle), structured errors, testing conventions, and
gotchas like the spf13/pflag module path and value-type encoding
differences.

Assisted-by: Crush:glm-5.2

---------

Co-authored-by: rsteube-bot <rsteube-bot@users.noreply.github.com>

24 of 24 new or added lines in 1 file covered. (100.0%)

2652 of 4885 relevant lines covered (54.29%)

0.59 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30107650285.1 24 Jul 2026 04:01PM UTC 42
54.29
GitHub Action Run
Source Files on build 30107650285
  • Tree
  • List 42
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9da0f9cd on github
  • Prev Build on master (#26393919590)
  • Next Build on master (#30108346163)
  • 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