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:
@@ -124,6 +124,7 @@ pub fn build_cli() -> Command<'static> {
|
||||
.short('t')
|
||||
.long("file_types")
|
||||
.conflicts_with("depth")
|
||||
.conflicts_with("only_dir")
|
||||
.help("show only these file types"),
|
||||
)
|
||||
.arg(
|
||||
@@ -151,6 +152,7 @@ pub fn build_cli() -> Command<'static> {
|
||||
.short('D')
|
||||
.long("only-dir")
|
||||
.conflicts_with("only_file")
|
||||
.conflicts_with("types")
|
||||
.help("Only directories will be displayed."),
|
||||
)
|
||||
.arg(
|
||||
|
||||
Reference in New Issue
Block a user