Crate unixcli [] [src]

This library provides helper functions for writing unix command-line utilities.

Modules

err

Prints messages to the standard error output.

progname

Provides access to the name of the current program.

Macros

err

Prints the formatted message to the standard error output (stderr) and terminates the program with the given status value. The program name, a colon, and a space are output before the message, and a newline character follows.

errp

Prints the formatted message to the standard error output (stderr) and terminates the program with the given status value. The program name, a colon, a pathname, another colon, and a space are output before the message, and a newline character follows.

warn

Prints the formatted message to the standard error output (stderr). The program name, a colon, and a space are output before the message, and a newline character follows.

warnp

Prints the formatted message to the standard error output (stderr). The program name, a colon, a pathname, another colon, and a space are output before the message, and a newline character follows.