solidiquis / erdtree

A modern, cross-platform, multi-threaded, and general purpose filesystem and disk-usage utility that is aware of .gitignore and hidden file rules.
https://crates.io/crates/erdtree
MIT License
2.36k stars 63 forks source link

error when running V3.1.2 #222

Closed ixzh closed 1 year ago

ixzh commented 1 year ago

I have the following error when running erd:

error: unexpected argument '--size-left' found

P.S.: I found another et app in ~/.cargo/bin folder. Since when erdtree renamed to erd? How can I uninstall older version?

solidiquis commented 1 year ago

Hello! So you must have missed a few releases.

et -> erd when v2.0 was released due to name collisions with some Linux packages.

--size-left has since been deprecated and is no longer necessary. Size is now displayed on the left only.

Please check to see if you have a .erdtreerc file. You might have --size-left specified in there. Here's a link on how to get setup with the new configurations.

To get the latest erdtree version you can just: $ cargo install erdtree.

If that doesn't work for whatever reason why $ cargo uninstall erdtree then $ cargo install erdtree.

Let me know if you have any persistent issues!

ixzh commented 1 year ago

Please check to see if you have a .erdtreerc file.

You are right. I have that line in the hidden config in ~/.config/erdtree/.erdtreerc. It works after removing it. Thanks you!