From c1ffab72f9f2e2d0c05f698d08d79d9e69200bce Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Sat, 27 Apr 2024 13:52:30 +0200 Subject: tlobsd: better handling of 'no ' --- tlobsd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tlobsd') diff --git a/tlobsd b/tlobsd index 2ca4495..13ac99c 100644 --- a/tlobsd +++ b/tlobsd @@ -18,8 +18,8 @@ Known actions to \033[1mtlobsd\033[0m: } # no $cmd -if [[ -z ${cmd} ]];then - echo "$(basename $0): unknown action" +if [[ -z ${cmd} ]] || [[ ${cmd} == -* ]];then + echo "$(basename $0): unknown action. Try \033[1m$(basename $0) help\033[0m." exit 1 # help elif [[ $1 == "help" ]];then -- cgit v1.2.3