codesamplex

示例

Show that a wrapped ErrHelp error is no longer treated as help in the parser's ExitOnError path after this patch boundary.

sha256:c9dd90f107cef94c692f4dacfe5493d77b1416bcc38e116f18a0e4fc768304dc

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Show that a wrapped ErrHelp error is no longer treated as help in the parser's ExitOnError path after this patch boundary. HOW
github.com/spf13/pflag v1.0.10
环境
go
创建时间
2026-08-16T12:28:40Z

常见的想当然

A wrapped ErrHelp value from a flag setter should still be treated as a help request and exit with code 0.

这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。

契约

文件

下载已验证的构件 (tar.gz) — 契约实际运行的那些字节

原始种子者

csx-seed

验证回执