#exit #integer #utf-8 #cli #i32 #choice #exit-code

app exit-with-code

A CLI which returns the exit code of your choice

1 stable release

1.0.0 Jan 19, 2022

#1709 in Text processing

Apache-2.0 OR MIT

86 lines

Exit With Code (EWC) - CLI


ewc 1.0.0
Martijn Gribnau <garm@ilumeo.com>

Returns the exit code, provided by you as the first argument, unless:
* Too many or too few arguments were given
* The argument could not be parsed as UTF-8
* The argument could not be parsed as an integer (i32)
* Platform specific behaviour, such as the maximum accepted range of integers, interfered with the
  execution behaviour of the program

When the program fails with an unexpected error, as above, it will output a message to stderr,
and exit with exit code 255. The program will not write to stderr in case of successful execution
of the program. NB: A non-zero exit code on its own does not indicate failure for this program.


EXIT_CODE   The exit code which this program will return


Licensed under either of

at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps