]> danix's work - bash-notes.git/commitdiff
running the program without options now displays the help text
authordanix <redacted>
Sat, 25 Mar 2023 10:35:06 +0000 (11:35 +0100)
committerdanix <redacted>
Sat, 25 Mar 2023 10:35:06 +0000 (11:35 +0100)
modified:   notes.sh

notes.sh

index 04a2582a88a651605140192052146e7430023dd9..87bb4302fa705e544aca47cc29e9017501f5ad59 100644 (file)
--- a/notes.sh
+++ b/notes.sh
@@ -294,7 +294,8 @@ while true; do
                        exit
                        ;;
                -- )
-                       shift; break
+                       helptext
+               exit
                        ;;
                * )
                        break