Browse Source

Use -h for screen-connect

Samuel W. Flint 5 years ago
parent
commit
6c20ac2a80
1 changed files with 3 additions and 3 deletions
  1. 3 3
      screen-connect

+ 3 - 3
screen-connect

@@ -1,7 +1,7 @@
 #!/bin/sh
 
 if [[ $# -eq 0 ]] ; then
-    echo "screen-connect [ -c (-N name) | -n (-N name) | -l | -? ] (-x)" >&2
+    echo "screen-connect [ -c (-N name) | -n (-N name) | -l | -h ] (-x)" >&2
     exit 1
 fi
 
@@ -11,7 +11,7 @@ LISTFLAG=false
 XWINFLAG=false
 NAME=""
 
-while getopts "cnlxN:?" opt
+while getopts "cnlxN:h" opt
 do
     case "$opt" in
         c)
@@ -29,7 +29,7 @@ do
         N)
             NAME="$OPTARG"
             ;;
-        [?])
+        h)
             echo "screen-connect [ -c (-N name) | -n (-N name) | -l | -? ] (-x)" >&2
             exit 1
             ;;