Skip to content

Command line utility and python library to print to standard error optionally exiting with a code.

License

Notifications You must be signed in to change notification settings

joaompinto/print_err

Repository files navigation

print_err

Command line utility and python library to print to standard error optionally exiting with a code.

Install

pip install print_err

Usage

As a python function

from print_err import print_err
print_err("This messages goes to stderr")
print_err("This messages goes to stderr", exit_code=2)

As a command line utility

$ print_err "print to stderr and exit() with code 2" 2

About

Command line utility and python library to print to standard error optionally exiting with a code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages