feat(k8s): add shorthand options for sub-commands in freeleaps-cluster-authenticator help message

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2025-01-14 17:21:09 +08:00
parent 1cd0c6c792
commit 8598d92c01

View File

@ -23,10 +23,10 @@ help() {
echo "Usage: freeleaps-cluster-authenticator <sub-command>" echo "Usage: freeleaps-cluster-authenticator <sub-command>"
echo "" echo ""
echo "Sub Commands:" echo "Sub Commands:"
echo " auth Setup kubectl for freeleaps cluster with Mathmast account." echo " auth,-a,--auth Setup kubectl for freeleaps cluster with Mathmast account."
echo " clear Clear authentication for freeleaps cluster." echo " clear,-c,--clear Clear authentication for freeleaps cluster."
echo " doctor Check if all the required tools are installed." echo " doctor,-d,--doctor Check if all the required tools are installed."
echo " help,-h,--help Show this help message." echo " help,-h,--help Show this help message."
echo "" echo ""
echo "Environment Options:" echo "Environment Options:"
echo " CLUSTER_API_LB_IP: IP address of the cluster API load balancer." echo " CLUSTER_API_LB_IP: IP address of the cluster API load balancer."
@ -278,13 +278,13 @@ main() {
subcommand="$1" subcommand="$1"
case "${subcommand}" in case "${subcommand}" in
auth) auth|-a|--auth)
auth auth
;; ;;
clear) clear|-c|--clear)
clear_auth clear_auth
;; ;;
doctor) doctor|-d|--doctor)
gather_prerequisites gather_prerequisites
;; ;;
help|-h|--help) help|-h|--help)