Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion has
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ Usage: ${BINARY_NAME} [OPTION] <command-names>...
Has checks the presence of various command line tools on the PATH and reports their installed version.

Options:
--color-auto Enable color output automatically (default)
--color-always Always enable color output
--color-never Disable color output
-q Silent mode
-h, --help Display this help text and quit
-v, --version Show version number and quit
Expand All @@ -79,7 +82,7 @@ _print_version() {
# function to parse color option
_set_color() {
local found=0;
for opt in "${COLOR_OPTS[@]}"; do
for opt in ${COLOR_OPTS}; do
[ "${1}" == "${COLOR_PREFIX}-${opt}" ] && COLOR="${opt}" && found=1 && break
done
[ ${found} -eq 1 ] || >&2 echo "Error: wrong flag ${1}"
Expand Down