1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 11:31:46 +00:00

chore: Remove --force-rescan option from uninstall command and script.

This commit is contained in:
Tw93
2025-12-29 19:40:09 +08:00
parent 6328bf158d
commit 7485af0bee
3 changed files with 4 additions and 6 deletions

View File

@@ -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
```

View File

@@ -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

2
mole
View File

@@ -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