Repository: lsd-rs/lsd (language: rust)

Issue:
lsd --directory-only --tree --depth 2
- os: `Darwin`, `Linux`
- `lsd --version`: `lsd 0.22.0`
- `echo $TERM`: `xterm-256color`
- `echo $LS_COLORS`: _irrelevant_

## Expected behavior
`tree -dL 2` shows directory structure with depth of 2.

## Actual behavior
`lsd --directory-only --tree --depth 2` fails with error:
```
error: The argument '--depth <num>...' cannot be used with '--directory-only'

USAGE:
    lsd --color <color>... --date <date>... --depth <num>... --directory-only --hyperlink <hyperlink>... --icon <icon>... --icon-theme <icon-theme>... --ignore-glob <pattern>... --permission <permission>... --size <size>... --tree

For more information try --help
```




Discussion / hints:
Removing `conflicts_with` field for `depth` from the `directory-only` arg, without any other change, seems to get the expected behaviour.
https://github.com/Peltoche/lsd/blob/586e1c9e76a9bbb8c5ae6fdb5bdc1ed6f090e32e/src/app.rs#L131

I don't remember what but I trying to do that and it causing some issue when used without tree. Just give it a shot and if you don't find any problems, feel free to open a PR for this change.

Fix patch:
diff --git a/src/app.rs b/src/app.rs
index 1be493972..fa329592e 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -65,7 +65,7 @@ pub struct Cli {
     pub depth: Option<usize>,
 
     /// Display directories themselves, and not their contents (recursively when used with --tree)
-    #[arg(short, long, conflicts_with_all = ["depth", "recursive"])]
+    #[arg(short, long, conflicts_with = "recursive")]
     pub directory_only: bool,
 
     /// How to display permissions [default: rwx for linux, attributes for windows]


Test patch: