codesamplex

Sample

Parsing flags with NoOptDefVal assigns the no-option default and preserves subsequent space-separated arguments as positional parameters unless explicit equals delimiter syntax is used

sha256:cc2c397664e089bf5638765dcfb834232cd669f9970283902c9b8947b773b043

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Parsing flags with NoOptDefVal assigns the no-option default and preserves subsequent space-separated arguments as positional parameters unless explicit equals delimiter syntax is used HOW
Packages
github.com/spf13/pflag 1.0.10
Environment
go
Created
2026-08-16T12:28:14Z

Commonly assumed

a flag with NoOptDefVal set binds a subsequent space-separated argument as its value during command-line parsing

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts