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:
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user