We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f283c6 commit 7892c4aCopy full SHA for 7892c4a
conda/install.sh
@@ -22,6 +22,31 @@ else
22
fi
23
24
25
+usage(){
26
+ echo "Usage: install.sh [-h]"
27
+ echo
28
+ echo "-h : show this help"
29
+ exit 1
30
+}
31
+
32
+while getopts "h" OPTNAME ; do
33
+ case "${OPTNAME}" in
34
+ h)
35
+ usage
36
+ ;;
37
+ :)
38
+ # If expected argument omitted:
39
+ echo "Error: -${OPTARG} requires an argument."
40
41
42
+ *)
43
+ # If unknown (any other) option:
44
+ echo "Error: -${OPTARG} unknown."
45
46
47
+ esac
48
+done
49
50
# note:
51
# this is a portable way (works in linux and osx) to get the directory of this script.
52
# readlink -ef may not work on osx.
0 commit comments