if test "${return:-0}" -gt 0 && command -v -- "$1" >/dev/null; then
  {
    unbuffer "$@" --help \
      || { test $? = 1 && "$@" -help; } || { test $? = 1 && "$@" -h; }
  } 2>&1
  return=$?
fi
