1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-12 23:15:15 +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

@@ -373,6 +373,18 @@ main() {
local health_json
for arg in "$@"; do
case "$arg" in
"--help" | "-h")
echo "Usage: mo optimize [OPTIONS]"
echo ""
echo "Check and maintain system health, apply optimizations."
echo ""
echo "Options:"
echo " --dry-run Preview optimization without making changes"
echo " --whitelist Manage protected items"
echo " --debug Show detailed operation logs"
echo " -h, --help Show this help message"
exit 0
;;
"--debug")
export MO_DEBUG=1
;;