aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanix <danix@danix.xyz>2023-03-25 11:35:06 +0100
committerdanix <danix@danix.xyz>2023-03-25 11:35:06 +0100
commit3d116947e6658f6cd542a8a47b91648156475ece (patch)
tree331bfb2c709eefba02dab2aa096da641abd125bd
parentb648c00619721c0f5ee56c03ae33a1e68b35cf9c (diff)
downloadbash-notes-3d116947e6658f6cd542a8a47b91648156475ece.tar.gz
bash-notes-3d116947e6658f6cd542a8a47b91648156475ece.zip
running the program without options now displays the help text
modified: notes.sh
-rw-r--r--notes.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/notes.sh b/notes.sh
index 04a2582..87bb430 100644
--- a/notes.sh
+++ b/notes.sh
@@ -294,7 +294,8 @@ while true; do
exit
;;
-- )
- shift; break
+ helptext
+ exit
;;
* )
break