Browse Source

Print usage to stderr when cmdline errors occur

Matteo Savatteri 3 years ago
parent
commit
0fbacd759b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vaporget

+ 1 - 1
vaporget

@@ -110,7 +110,7 @@ while getopts pdm:h f; do
 			echo "${HELP_TEXT}" && exit 0
 		;;
 		\?)
-			echo "${USAGE}" && exit 1
+			echo "${USAGE}" >&2 && exit 1
 		;;
 	esac
 done