From d3300a478d7a87800d9c2ccb78768b409ae660cf Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 18 Feb 2023 17:11:54 -0500 Subject: simplification of decoding, show help on noopt --- bin/mw | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin/mw') diff --git a/bin/mw b/bin/mw index 44a6566..2baa5f7 100755 --- a/bin/mw +++ b/bin/mw @@ -313,6 +313,8 @@ while getopts "rfpXlhodTYD:y:i:I:s:S:u:a:n:P:x:m:t:" o; do case "${o}" in \?) echo "See \`$(basename $0) -h\` for possible options and help."; exit 1 ;; esac done +[ -z "$action" ] && action="info" + case "$action" in list) list ;; add) checkbasics && askinfo && getboxes && getprofiles && finalize ;; -- cgit v1.2.3