feat: New --collapse flag

--collapse will keep that directory collapsed and will not expand it.
This commit is contained in:
andy.boot
2025-01-26 14:32:13 +00:00
parent 6cbd736e11
commit 01c0aaeade
11 changed files with 55 additions and 5 deletions
+1
View File
@@ -45,6 +45,7 @@ _dust() {
'-y+[just like -mtime, but based on file change time]: : ' \
'--ctime=[just like -mtime, but based on file change time]: : ' \
'--files0-from=[run dust on NUL-terminated file names specified in file; if argument is -, then read names from standard input]: :_files' \
'*--collapse=[Keep these directories collapsed]: :_files' \
'-m+[Directory '\''size'\'' is max filetime of child files instead of disk size. while a/c/m for last accessed/changed/modified time]: :(a c m)' \
'--filetime=[Directory '\''size'\'' is max filetime of child files instead of disk size. while a/c/m for last accessed/changed/modified time]: :(a c m)' \
'-p[Subdirectories will not have their path shortened]' \