Skip to main content

EXIT_USAGE

Constant EXIT_USAGE 

Source
pub const EXIT_USAGE: i32 = 2;
Expand description

The exit code for a usage/parse error. (TS main.ts uses process.exit(1) for most error paths; v1 distinguishes usage errors with the conventional 2 so scripts can tell “bad invocation” from “run failed”.)