rust/rhg/src/exitcode.rs
author Simon Sapin <simon.sapin@octobus.net>
Fri, 12 Feb 2021 16:54:30 +0100
changeset 46591 21d3b40b4c0e
parent 46445 ca3f73cc3cf4
child 46744 b1f2c2b336ec
permissions -rw-r--r--
rhg: Remove error message on unsupported CLI arguments Like in other "unsupported" cases that return a specific exit code Differential Revision: https://phab.mercurial-scm.org/D10002

pub type ExitCode = i32;

/// Successful exit
pub const OK: ExitCode = 0;

/// Generic abort
pub const ABORT: ExitCode = 255;

/// Command or feature not implemented by rhg
pub const UNIMPLEMENTED: ExitCode = 252;