summaryrefslogtreecommitdiff
path: root/bin/mw
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2023-02-18 17:11:54 -0500
committerLuke Smith <luke@lukesmith.xyz>2023-02-18 17:11:54 -0500
commitd3300a478d7a87800d9c2ccb78768b409ae660cf (patch)
tree6a75d885858d71c8fee77ae5c0e611864a742ce6 /bin/mw
parentfe23f7c6722ded6d6ee7823c63c4ebfc82e16d70 (diff)
simplification of decoding, show help on noopt
Diffstat (limited to 'bin/mw')
-rwxr-xr-xbin/mw2
1 files changed, 2 insertions, 0 deletions
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 ;;