This is the record of an abcd-managed repository

abcdBetav0.16.2 · 2026-11-06

Development record

An unknown flag under --json is refused with no JSON envelope on stdout: abcd ahoy --bogus --json (and any verb) prints cobra's 'abcd: unknown flag: --bogus' on stderr, exits 2 and leaves stdout empty, because the flag parse fails before the persistent --json flag is read, so Run() sees json=false. The --json contract ('a refusal is a {"abcd":"error",...} object on stdout too') is broken for every flag-parse refusal; a machine caller passing an old flag (abcd version --check --json after v0.12.0) reads nothing.

issueresolvedminoriss-2609292352131344

An unknown flag under --json is refused with no JSON envelope on stdout: abcd ahoy --bogus --json (and any verb) prints cobra's 'abcd: unknown flag: --bogus' on stderr, exits 2 and leaves stdout empty, because the flag parse fails before the persistent --json flag is read, so Run() sees json=false. The --json contract ('a refusal is a {"abcd":"error",...} object on stdout too') is broken for every flag-parse refusal; a machine caller passing an old flag (abcd version --check --json after v0.12.0) reads nothing.

Grounds

  • pursued: every flag-parse refusal of a --json run is one JSON envelope on stdout with nothing on stderr; shown wrong if any verb's unknown flag followed by --json still prints prose or leaves stdout empty

Frontmatter

idiss-2609292352131344
typeissue
lifecycleresolved
severityminor

mentions2