add: help

This commit is contained in:
Jamie Albert
2025-11-13 20:53:43 +00:00
parent fbb5b34335
commit ee0be951e3

View File

@@ -13,6 +13,33 @@
# ---
set -euo pipefail
show_help() {
cat <<'EOF'
Usage: dao.sh <COMMAND> [OPTIONS]
A command dispatcher for various utilities and scripts.
COMMANDS:
kitty [OPTIONS] Manage Kitty terminal instances
--list List current Kitty instances
--new-instance Launch new Kitty instance
--new-tab Launch new Kitty tab
mount [OPTIONS] Mount filesystems
pwgen [OPTIONS] Generate secure passwords
update Update system packages
EXAMPLES:
dao update Run system update
dao mount --unmount Unmount filesystems
dao kitty --list List Kitty instances
dao kitty --new-tab Launch Kitty or new tab
Use 'dao <COMMAND> --help' for command-specific help.
EOF
exit 0
}
[[ "${1:-}" == "-h" || "${1:-}" == "--help" ]] && show_help
# ---
# shellcheck disable=1091
# ---