help()
This commit is contained in:
parent
9f44a1f6d2
commit
1feb3b0dcc
14
atom
14
atom
@ -56,6 +56,20 @@ do
|
|||||||
source "$function"
|
source "$function"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
help() {
|
||||||
|
cat <<-EOF
|
||||||
|
Options:
|
||||||
|
-c <file> Load configuration file <file>
|
||||||
|
-C Dump configuration and exit
|
||||||
|
-l <load> Override max-load
|
||||||
|
-T <seconds> override load-interval
|
||||||
|
-F <destination> Force re-generation of all files in
|
||||||
|
<destination>
|
||||||
|
-h Show this text
|
||||||
|
-D Increase debug
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
#parse arguments
|
#parse arguments
|
||||||
OPTERR=0
|
OPTERR=0
|
||||||
while getopts ':c:Cl:T:F:hD' opt
|
while getopts ':c:Cl:T:F:hD' opt
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user