costs

Tool to help you see the impact of recurring costs
Log | Files | Refs | README

commit 2358e2b5090291dcb3b22e01b8dbd6e6bfb4c68f
parent 36b193e0ad761334dd934a957014084b1ae5e096
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Sun,  6 Aug 2023 07:46:12 -0700

Give standard usage error message

Diffstat:
Mcosts | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/costs b/costs @@ -8,7 +8,10 @@ do case "$1" in (-t) filter=./total.awk ;; (-p) filter=./percentage.awk ;; - (-*) echo 'invalid option' 1>&2 ;; + (-*) + echo "usage: ${0##*/} [-tp] [args ...] +error: $1: invalid option" 1>&2 + exit 1 ;; (*) break ;; esac shift