Crates.io | exit-with-code |
lib.rs | exit-with-code |
version | 1.0.0 |
source | src |
created_at | 2022-01-19 22:10:26.77997 |
updated_at | 2022-01-19 22:10:26.77997 |
description | A CLI which returns the exit code of your choice |
homepage | |
repository | |
max_upload_size | |
id | 517106 |
size | 21,669 |
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.
Usage:
ewc [EXIT_CODE]
Args:
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.