basic help doc

This commit is contained in:
2020-01-10 12:25:13 +02:00
parent 8d8a5fe846
commit 5f5c24641e

View File

@@ -1,5 +1,18 @@
#!/bin/bash
function helpexit() {
echo "Simple Timer."
echo '$PREFIX is printed before the time'
echo '$POSTFIX is printed after the time'
exit
}
for (( i=1; i<=$#; i++ )); do
[[ "${!i}" = "--help" ]] && helpexit
[[ "${!i}" = "-h" ]] && helpexit
done
function displaytime {
local T=$1
local D=$((T/60/60/24))