Skip to main content

EXIT_TOOL_ERROR

Constant EXIT_TOOL_ERROR 

Source
pub const EXIT_TOOL_ERROR: u8 = 2;
Expand description

Exit code for a run that could not complete.

Bad configuration, unreadable or oversized input, an unknown check name, or a malformed command line. Nothing was measured, so there is no output worth reading and retrying unchanged will not help.

This is 2 because clap already exits 2 for every usage error and that code is not configurable. Rather than fight it, bito adopts it: a malformed command line is a run that could not complete, so clap’s default lands in the correct bucket for free. Findings therefore take 1, which also matches eslint, ruff, and shellcheck.