mirror of
https://github.com/tw93/Mole.git
synced 2026-02-12 00:39:02 +00:00
feat: add commands help flag (#429)
This commit is contained in:
12
bin/clean.sh
12
bin/clean.sh
@@ -1078,6 +1078,18 @@ perform_cleanup() {
|
||||
main() {
|
||||
for arg in "$@"; do
|
||||
case "$arg" in
|
||||
"--help" | "-h")
|
||||
echo "Usage: mo clean [OPTIONS]"
|
||||
echo ""
|
||||
echo "Clean up disk space by removing caches, logs, and temporary files."
|
||||
echo ""
|
||||
echo "Options:"
|
||||
echo " --dry-run, -n Preview cleanup without making changes"
|
||||
echo " --whitelist Manage protected paths"
|
||||
echo " --debug Show detailed operation logs"
|
||||
echo " -h, --help Show this help message"
|
||||
exit 0
|
||||
;;
|
||||
"--debug")
|
||||
export MO_DEBUG=1
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user