All command-line software which outputs text with ANSI color added
should check for the presence of a NO_COLOR environment variable that,
when present (regardless of its value), prevents the addition of ANSI color.
supports NO_EMOJI env var
same as NO_COLOR but for preventing the use of emoji chars
for example: use @ instead of 🌀
support configuration settings and precedence of options
order of loading should always be
program defaults
for ex: the App.config property
Global configuration file
this is a system-wide shared by all users config file
Local configuration file
this is per user config file that the program only load it if it exists
Environment variables
a. user env vars
b. system env vars
from package
C.unistd
, usegetopt()
and/orgetopt_long()
use command-line standard arguments
-h / --help current tool help
-v / --version current tool version
-i / --info current tool informations
-V / --verbose enable verbose output
always exit with
0
for success, or1
for failuresupports
NO_COLOR
env var see: https://no-color.org/supports
NO_EMOJI
env var same asNO_COLOR
but for preventing the use of emoji chars for example: use@
instead of🌀
support configuration settings and precedence of options order of loading should always be
App.config
property