noformat='\033[0m'
print() { printf "%b%b" "${1-""}" "${2-"${noformat}\\n"}"; }
stderr() { print "$@" 1>&2; }

has_program () {
  command -v "$1" >/dev/null 2>&1
}

if ! has_program "$1"; then
  # <++>
  print "need $1 (command not found)"
fi
