Sample
FlagSet parses interspersed flags and positional arguments by default and preserves unparsed flags as positional arguments when SetInterspersed is false
sha256:d9d94f11d549d441519ec42e430f9e260ef572e5567621c82600fc80589b916d
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- go
- Operating system
- linux
- Architecture
- x64
- Runtime
- go
- Language
- go
- Package manager
- go
Verification-run environments
- Execution context
- go 1.26
- Operating system
- linux alpine · musl
- Architecture
- x64
- Runtime
- go 1.26
- Language
- go
- Package manager
- go
- Execution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-17
Case
- Goal
- FlagSet parses interspersed flags and positional arguments by default and preserves unparsed flags as positional arguments when SetInterspersed is false HOW
- Packages
-
github.com/spf13/pflag v1.0.10
- Environment
- go
- Created
- 2026-08-17T11:32:34Z
Contract
- FlagSet parses flags interspersed with positional arguments by default and collects non-flag arguments in Args.
- Calling FlagSet.SetInterspersed(false) stops flag parsing upon reaching the first positional argument, retaining subsequent flags unparsed in Args.
Files
- NOTES.md
- csx.json
- go.mod
- go.sum
- pflag_interspersed_test.go
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- go 1.26 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-17 · ed25519:d91480838ac982c9