Development record
A mutually exclusive flag group refuses with exit 1, not the usage-error exit 2: cobra's group validation runs after PreRunE and returns a plain error that markUsageErrorsExitTwo never tags, so abcd ahoy --dry-run --identity, abcd update --check --yes and abcd site build --preview --version exit 1, which a gate reads as a finding rather than a mis-spelt invocation
issueresolvedminoriss-2609251734057081
A mutually exclusive flag group refuses with exit 1, not the usage-error exit 2: cobra's group validation runs after PreRunE and returns a plain error that markUsageErrorsExitTwo never tags, so abcd ahoy --dry-run --identity, abcd update --check --yes and abcd site build --preview --version exit 1, which a gate reads as a finding rather than a mis-spelt invocation
Grounds
- pursued: every mutually exclusive group refuses with exit 2 wherever it is declared; shown wrong by any group whose two-flag invocation exits other than 2, which the tree walk would name
Frontmatter
| id | iss-2609251734057081 |
|---|---|
| type | issue |
| lifecycle | resolved |
| severity | minor |
.abcd/work/issues/resolved/iss-2609251734057081-exclusive-flag-group-exits-one.md
open on GitHub ↗ · commit history ↗