today

what did you do today?
git clone git://git.alexkarle.com.com/today
Log | Files | Refs | README | LICENSE

commit 21e683ef26b23840431d4b3991bdea16123b6687 (patch)
parent 19bb62d9200134cdc51292fdbeda055f433b900d
Author: Alex Karle <alex@alexkarle.com>
Date:   Thu,  3 Mar 2022 22:21:06 -0500

Suppress 'unknown option' when run with no options

Diffstat:
Mtoday | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/today b/today @@ -82,7 +82,7 @@ case "$1" in -n) reqinit && new ;; -l) reqinit && list "$2" ;; *) - err "error: unknown option $1" + [ -n "$1" ] && err "error: unknown option $1" die "usage: today [-ein] [-l [NUM]]" ;; esac