running the program without options now displays the help text
authordanix <danix@danix.xyz>
Sat, 25 Mar 2023 10:35:06 +0000 (11:35 +0100)
committerdanix <danix@danix.xyz>
Sat, 25 Mar 2023 10:35:06 +0000 (11:35 +0100)
modified:   notes.sh

notes.sh

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