1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-12 04:43:59 +00:00

feat: add commands help flag (#429)

This commit is contained in:
Michael Wang 汪東陽
2026-02-10 15:02:57 +08:00
committed by GitHub
parent e65b73eb64
commit 3820bf2be7
5 changed files with 60 additions and 0 deletions

View File

@@ -306,6 +306,22 @@ main() {
local command="${1:-}"
case "$command" in
"--help" | "-h")
echo "Usage: mo touchid [COMMAND]"
echo ""
echo "Configure Touch ID for sudo authentication."
echo ""
echo "Commands:"
echo " enable Enable Touch ID for sudo"
echo " disable Disable Touch ID for sudo"
echo " status Show current Touch ID status"
echo ""
echo "Options:"
echo " -h, --help Show this help message"
echo ""
echo "If no command is provided, an interactive menu is shown."
exit 0
;;
enable)
enable_touchid
;;