Design decisions

252. An unknown judge named in a file or cp.toml exits 1, on the command line 2 (2026-11-22)

  • Decision. cpl judges, cpl build and cpl submit exit 1 when a // judge: line or cp.toml names a judge that does not exist, and 2 only for cpl build --judge nope.
  • Why. The exit-code convention (spec/tools/cli.md, tools-4) keeps 2 for misuse of the command line; a bad name inside the files is the files' error, like a compile error, and fixing it means editing them.
  • Reverse. Return EXIT_USAGE again where cpl_judge::resolve fails in crates/cpl-cli/src/build.rs and submit.rs.