Browse Source

check_cpu/rpi_temp: clarify arguments in halp output kek

Wazakindjes 1 year ago
parent
commit
a735fc38c1
2 changed files with 14 additions and 2 deletions
  1. 7 1
      check_cpu
  2. 7 1
      check_rpi_temp

+ 7 - 1
check_cpu

@@ -26,7 +26,9 @@ print_version() {
 
 print_usage() {
 	echo "Usage:"
-	echo "$PROGNAME [-i/--interval] [-w/--warning] [-c/--critical]"
+	echo "$PROGNAME [-i/--interval <seconds>] [-w/--warning <level>] [-c/--critical <level>]"
+	echo "$PROGNAME --help|--halp|-h"
+	echo "$PROGNAME --version|-v"
 	echo ""
 	echo "Options:"
 	echo "	--interval|-i)"
@@ -37,6 +39,10 @@ print_usage() {
 	echo "		Sets a warning level for CPU user. Default is: off"
 	echo "	--critical|-c)"
 	echo "		Sets a critical level for CPU user. Default is: off"
+	echo "	--help|--halp|-h)"
+	echo "		Display help/usage information."
+	echo "	--version|-v)"
+	echo "		Display version information."
 }
 
 print_header() {

+ 7 - 1
check_rpi_temp

@@ -22,13 +22,19 @@ print_version() {
 
 print_usage() {
 	echo "Usage:"
-	echo "$PROGNAME [-w/--warning] [-c/--critical]"
+	echo "$PROGNAME [-w/--warning <level>] [-c/--critical <level>]"
+	echo "$PROGNAME --help|--halp|-h"
+	echo "$PROGNAME --version|-v"
 	echo ""
 	echo "Options:"
 	echo "	--warning|-w)"
 	echo "		Sets a warning level, default is $warn"
 	echo "	--critical|-c)"
 	echo "		Sets a critical level, default is $crit"
+	echo "	--help|--halp|-h)"
+	echo "		Display help/usage information."
+	echo "	--version|-v)"
+	echo "		Display version information."
 }
 
 print_header() {