From 7485af0bee90a9079ffeb509376c583e8c798ac8 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Mon, 29 Dec 2025 19:40:09 +0800 Subject: [PATCH] chore: Remove `--force-rescan` option from `uninstall` command and script. --- README.md | 2 +- bin/uninstall.sh | 6 ++---- mole | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0148f8a..162ef09 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ mo --version # Show installed version mo clean --dry-run # Preview the cleanup plan mo clean --whitelist # Manage protected caches -mo uninstall --force-rescan # Rescan applications and refresh cache + mo optimize --whitelist # Manage protected optimization rules mo purge --paths # Configure project scan directories ``` diff --git a/bin/uninstall.sh b/bin/uninstall.sh index 243e67d..8b1b2ca 100755 --- a/bin/uninstall.sh +++ b/bin/uninstall.sh @@ -4,7 +4,7 @@ # # Usage: # uninstall.sh # Launch interactive uninstaller -# uninstall.sh --force-rescan # Rescan apps and refresh cache +# uninstall.sh # Launch interactive uninstaller set -euo pipefail @@ -370,14 +370,12 @@ trap cleanup EXIT INT TERM main() { local force_rescan=false + # Parse global flags locally if needed (currently none specific to uninstall) for arg in "$@"; do case "$arg" in "--debug") export MO_DEBUG=1 ;; - "--force-rescan") - force_rescan=true - ;; esac done diff --git a/mole b/mole index b38f36d..fdbfef1 100755 --- a/mole +++ b/mole @@ -285,7 +285,7 @@ show_help() { echo printf " %s%-28s%s %s\n" "$GREEN" "mo clean --dry-run" "$NC" "Preview cleanup" printf " %s%-28s%s %s\n" "$GREEN" "mo clean --whitelist" "$NC" "Manage protected caches" - printf " %s%-28s%s %s\n" "$GREEN" "mo uninstall --force-rescan" "$NC" "Rescan apps and refresh cache" + printf " %s%-28s%s %s\n" "$GREEN" "mo optimize --whitelist" "$NC" "Manage protected items" printf " %s%-28s%s %s\n" "$GREEN" "mo purge --paths" "$NC" "Configure scan directories" echo