add: help
This commit is contained in:
@@ -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
|
||||
# ---
|
||||
|
||||
Reference in New Issue
Block a user