commit 5c8b52fe3888a656bedeb19611adcffc9e472424 parent f0ae1de9e1c897b2828f6ede82ffd9e66e8fcae7 Author: Luke Smith <luke@lukesmith.xyz> Date: Mon, 13 Feb 2023 20:29:00 -0500 help menu fix Diffstat:
M | bin/mw | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/bin/mw b/bin/mw @@ -309,7 +309,8 @@ while getopts "rfpXlhodTYD:y:i:I:s:S:u:a:n:P:x:m:t:" o; do case "${o}" in X) setact delete ; purge=True ;; t) setact toggle ; cronmin="$OPTARG" ;; T) setact toggle ;; - *) mwinfo ;; + h) setact info ;; + \?) echo "See \`$(basename $0) -h\` for possible options and help."; exit 1 ;; esac done case "$action" in @@ -322,5 +323,5 @@ case "$action" in ;; toggle) togglecron ;; reorder) reorder ;; - *) mwinfo; exit 1 ;; + info) mwinfo; exit 1 ;; esac