Browse code

replaced some "version" with"hlp" , Test with attributes

dewomser authored on06/09/2020 09:16:05
Showing1 changed files

  • hlp index de2228c..b68c2ff 100755
... ...
@@ -7,7 +7,7 @@ ver="v0.0.1"
7 7
 
8 8
 tools_nano=-h
9 9
 tools_ls=--help
10
-
10
+tools_hlp=-h
11 11
 
12 12
 
13 13
 
... ...
@@ -21,16 +21,16 @@ fi
21 21
 # Display help
22 22
 if [ $1 == -h ]
23 23
 then
24
-  echo "version displays the versions of programs you have installed."
24
+  echo "hlp displays the help of programs you have installed."
25 25
   echo ""
26 26
   echo "Usage:"
27
-  echo "  version <program>    display version of program"
27
+  echo "  hlp <program>    display version of program"
28 28
   echo "                       (if known and installed)"
29 29
   echo "  hlp -h           display this help"
30 30
   echo "  hlp -l           display a list of known programs"
31 31
   echo "  hlp -c           display count of known programs"
32
-  echo "  hlp -v           display version of version"
33
-  echo "                       (yes, 'version version' also works!)"
32
+  echo "  hlp -v           display version of hlp"
33
+  echo "                       (yes, 'hlp hlp' also works!)"
34 34
   exit
35 35
 fi
36 36
 
... ...
@@ -38,7 +38,8 @@ fi
38 38
 if [ $1 == -c ]
39 39
 then
40 40
   count=$(egrep -o "^tools_" $(which hlp) | wc -l)
41
-  echo "I know how to find the versions of $count programs!"
41
+  echo "I know how to find the helps
42
+  of $count programs!"
42 43
   exit
43 44
 fi
44 45
 
... ...
@@ -63,7 +64,7 @@ hlp_arg=${!tool}
63 64
 # do we know about this program?
64 65
 if [ -z $hlp_arg ]
65 66
 then
66
-  echo "I don't know how to find the version of '$1'."
67
+  echo "I don't know how to find the help of '$1'."
67 68
   echo "If you figure it out, let me know at https://github.com/bit101/version"
68 69
   exit
69 70
 fi