Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(exa PR) 1064: Add -A option for more compatibility with ls #43

Merged
merged 11 commits into from
Jul 30, 2023
Merged

Conversation

cafkafk
Copy link
Member

@cafkafk cafkafk commented Jul 29, 2023

@cafkafk cafkafk changed the title (exa PR) 1064 (exa PR) 1064: Add -A option for more compatibility with ls Jul 29, 2023
@sbatial sbatial mentioned this pull request Jul 29, 2023
@sbatial sbatial self-assigned this Jul 29, 2023
@sbatial
Copy link
Collaborator

sbatial commented Jul 30, 2023

I arrived at an implementation that does what we want and is pretty concise imo

One thing I'd like your opinion on: I think it makes sense to not err when --tree --all --all is used but to fall back to --tree --all.
I find it a bit pedantic for a tool to be very much aware of the problem but not to try and react to it
(I'd do that in a different PR though. does not fall in the scope of this one)

@cafkafk
Copy link
Member Author

cafkafk commented Jul 30, 2023

I think it makes sense to not err when --tree --all --all is used but to fall back to --tree --all.

I agree!

I find it a bit pedantic for a tool to be very much aware of the problem but not to try and react to it

Wym by this?

@cafkafk
Copy link
Member Author

cafkafk commented Jul 30, 2023

Your changes seem to work without breaking anything, and cargo test works. Testing the -A flag also seems to work for me.

Is this ready to merge?

@cafkafk cafkafk linked an issue Jul 30, 2023 that may be closed by this pull request
@sbatial
Copy link
Collaborator

sbatial commented Jul 30, 2023

I find it a bit pedantic for a tool to be very much aware of the problem but not to try and react to it

Wym by this?

Well when --tree --all --all is used right now an error is thrown that that is not possible.
But we know why it is not possible (as far as I'm aware): it would lead to infinite recursion.
And we also know a (imo) solution that is reasonable to assume that that is what the user tried to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

About the -A flag
3 participants