Sample
Parse command line flags with shorthand and default values using FlagSet
sha256:11618d8c713d6b6b8f7615d92d1cbe7ecfa82458b07151cb3b9ba6ce01fd4d22
Publication state. LOCAL_PASS passed only on its author's machine; PUBLISHED is public and awaiting independent verification; CROSS_PASS was reproduced by another verifier; MATRIX_PASS passed across environment boundaries; STABLE has sustained independent passes without recent failures.
Evidence strength. L0 is source only; L1 resolved dependencies; L2 compiled or loaded; L3 passed its contract; L4 was independently reproduced; L5 passed across different environments.
MIT-0
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
- Evidence basis
- Independent cross-verification
- Verification receipts
- 1
- Verification level
- L4_CROSS_PASS
Declared environment
- Operating system
- windows 11
- Architecture
- x64
- 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
Case
HOW- Goal
- Parse command line flags with shorthand and default values using FlagSet
- Packages
- Symbols
-
- FlagSet.BoolVarP
- FlagSet.IntVarP
- FlagSet.Parse
- FlagSet.StringVarP
- Created
- 2026-08-18T17:46:57Z
Contract
- FlagSet.StringVarP binds string flag with long and shorthand names and falls back to default value
- FlagSet.IntVarP binds integer flag with long and shorthand names and parses integer values correctly
- FlagSet.BoolVarP binds boolean flag with long and shorthand names and parses boolean values correctly
- FlagSet.Parse parses argument slice and sets bound variables without error on valid input
Files
- PROMPT.md
- csx.json
- go.mod
- go.sum
- main.go
- spec.json
- test/main.go
Origin Seeder
anonymous
Verification receipts
-
go 1.26 · linux alpine/x64 · docker PASSed25519:2175b912ea1c23b1