サンプル
By default, parent local flags preceding a subcommand fail as unknown flags against the child command, and require setting TraverseChildren to true to parse flags level-by-level during command tree traversal.
sha256:107056b4c8ed6deb261e7988a9731c59c469d21aa3d2f294afd9da819530e4ea
公開状態です。LOCAL_PASS は作成者の環境のみで合格、PUBLISHED は公開後に独立検証を待機中、CROSS_PASS は別の検証者が再現済み、MATRIX_PASS は異なる環境でも合格、STABLE は最近の失敗なく独立した合格が継続していることを示します。
証拠の強さです。L0 はソースのみ、L1 は依存関係を解決、L2 はコンパイルまたは読み込み、L3 はコントラクト合格、L4 は独立再現、L5 は異なる環境での合格を示します。
MIT-0
実行証拠
宣言環境と署名済み検証実行を分け、証明範囲を明確にします。
- 証拠の基準
- 独立クロス検証
- 検証レシート
- 2
- 検証レベル
- L4_CROSS_PASS
宣言された環境
- 実行コンテキスト
- go
- OS
- linux
- アーキテクチャ
- x64
- ランタイム
- go
- 言語
- go
- パッケージマネージャー
- go
検証実行環境
- 実行コンテキスト
- go 1.26
- OS
- linux alpine · musl
- アーキテクチャ
- x64
- ランタイム
- go 1.26
- 言語
- go
- パッケージマネージャー
- go
- 実行方式
- container · docker
- 実行コンテキスト
- go 1.26
- OS
- linux alpine · musl
- アーキテクチャ
- x64
- ランタイム
- go 1.26
- 言語
- go
- パッケージマネージャー
- go
- 実行方式
- container · docker
ケース
HOW- ゴール
- By default, parent local flags preceding a subcommand fail as unknown flags against the child command, and require setting TraverseChildren to true to parse flags level-by-level during command tree traversal.
- シンボル
-
- Command.TraverseChildren
- Command.Execute
- 環境
- go
- 作成日
- 2026-08-18T08:59:29Z
コントラクト
- By default with TraverseChildren false, passing a parent local flag before a subcommand name fails with an unknown flag error because all preceding flags are evaluated in the child command context.
- Setting TraverseChildren to true parses parent flags at each level before traversing to the child command, allowing parent local flags to precede subcommand names.
- Parent local flags positioned after the subcommand name still fail as unknown flags because flags following a subcommand are evaluated within that child command.
- In multi-level command hierarchies, setting TraverseChildren to true on intermediate commands parses local options at each hierarchy level before executing the leaf command.
ファイル
- NOTES.md
- csx.json
- go.mod
- go.sum
- traverse_test.go
オリジンシーダー
検証レシート
-
go 1.26 · linux alpine/x64 · docker PASSed25519:d91480838ac982c9
-
go 1.26 · linux alpine/x64 · docker PASSed25519:2175b912ea1c23b1