diff --git a/libexec/rbenv-version-file b/libexec/rbenv-version-file
index a8335950..cc675ab5 100755
--- a/libexec/rbenv-version-file
+++ b/libexec/rbenv-version-file
@@ -1,6 +1,12 @@
#!/usr/bin/env bash
# Usage: rbenv version-file [
]
# Summary: Detect the file that sets the current rbenv version
+#
+# Detects and prints the location of a `.ruby-version` file that sets the
+# version for the current working directory. If no file found, this prints
+# the location of the global version file, even if that file does
+# not exist.
+
set -e
[ -n "$RBENV_DEBUG" ] && set -x