From f50889ba8b48e7ad14c539194f25095b690ef670 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Sat, 27 Feb 2021 12:55:09 +0100 Subject: [PATCH] Show the usage when the -p/--printresult options are used alone. --- scripts/ybcon.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/ybcon.sh b/scripts/ybcon.sh index 456a3c1..b546005 100755 --- a/scripts/ybcon.sh +++ b/scripts/ybcon.sh @@ -35,6 +35,8 @@ if [ "$#" != 0 ]; then if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then usage true exit 0; + elif [ "$1" = "-p" ] || [ "$1" = "--printresult" ]; then + usage false; exit 0; elif [ "$1" = "--version" ]; then run=true args="$1"