Crate uucore[][src]

Modules

All utils return exit with an exit code. Usually, the following scheme is used:

Macros

Display the provided error message, then exit() with the provided exit code

Unwraps the Result. Instead of panicking, it exists the program with the provided exit code.

Deduce the name of the binary from the current source code filename.

Calls exit() with the provided exit code.

Unwraps the Result. Instead of panicking, it shows the error and then returns from the function with the provided exit code. Assumes the current function returns an i32 value.

Unwraps the Result. Instead of panicking, it exists the program with exit code 1.

Show an error to stderr in a similar style to GNU coreutils.

Show a warning to stderr in a similar style to GNU coreutils.

Show a bad invocation help message in a similar style to GNU coreutils.

Enums

Traits

Functions