mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
fix: only-dir flag conflicts with types
If showing file types we can't limit output to directories only
This commit is contained in:
+4
-4
@@ -52,14 +52,14 @@ _dust() {
|
|||||||
'--filecount[Directory '\''size'\'' is number of child files/dirs not disk size]' \
|
'--filecount[Directory '\''size'\'' is number of child files/dirs not disk size]' \
|
||||||
'-i[Do not display hidden files]' \
|
'-i[Do not display hidden files]' \
|
||||||
'--ignore_hidden[Do not display hidden files]' \
|
'--ignore_hidden[Do not display hidden files]' \
|
||||||
'(-d --depth)-t[show only these file types]' \
|
'(-d --depth -D --only-dir)-t[show only these file types]' \
|
||||||
'(-d --depth)--file_types[show only these file types]' \
|
'(-d --depth -D --only-dir)--file_types[show only these file types]' \
|
||||||
'-H[print sizes in powers of 1000 (e.g., 1.1G)]' \
|
'-H[print sizes in powers of 1000 (e.g., 1.1G)]' \
|
||||||
'--si[print sizes in powers of 1000 (e.g., 1.1G)]' \
|
'--si[print sizes in powers of 1000 (e.g., 1.1G)]' \
|
||||||
'-P[Disable the progress indication.]' \
|
'-P[Disable the progress indication.]' \
|
||||||
'--no-progress[Disable the progress indication.]' \
|
'--no-progress[Disable the progress indication.]' \
|
||||||
'(-F --only-file)-D[Only directories will be displayed.]' \
|
'(-F --only-file -t --file_types)-D[Only directories will be displayed.]' \
|
||||||
'(-F --only-file)--only-dir[Only directories will be displayed.]' \
|
'(-F --only-file -t --file_types)--only-dir[Only directories will be displayed.]' \
|
||||||
'(-D --only-dir)-F[Only files will be displayed. (Finds your largest files)]' \
|
'(-D --only-dir)-F[Only files will be displayed. (Finds your largest files)]' \
|
||||||
'(-D --only-dir)--only-file[Only files will be displayed. (Finds your largest files)]' \
|
'(-D --only-dir)--only-file[Only files will be displayed. (Finds your largest files)]' \
|
||||||
'*::inputs:' \
|
'*::inputs:' \
|
||||||
|
|||||||
@@ -124,6 +124,7 @@ pub fn build_cli() -> Command<'static> {
|
|||||||
.short('t')
|
.short('t')
|
||||||
.long("file_types")
|
.long("file_types")
|
||||||
.conflicts_with("depth")
|
.conflicts_with("depth")
|
||||||
|
.conflicts_with("only_dir")
|
||||||
.help("show only these file types"),
|
.help("show only these file types"),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
@@ -151,6 +152,7 @@ pub fn build_cli() -> Command<'static> {
|
|||||||
.short('D')
|
.short('D')
|
||||||
.long("only-dir")
|
.long("only-dir")
|
||||||
.conflicts_with("only_file")
|
.conflicts_with("only_file")
|
||||||
|
.conflicts_with("types")
|
||||||
.help("Only directories will be displayed."),
|
.help("Only directories will be displayed."),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
|
|||||||
Reference in New Issue
Block a user