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

Ignore --across (-x) given option --long (-l) #476

Closed
tiojoca opened this issue Feb 11, 2019 · 3 comments
Closed

Ignore --across (-x) given option --long (-l) #476

tiojoca opened this issue Feb 11, 2019 · 3 comments
Assignees
Labels
features › arguments Command-line argument parsing
Milestone

Comments

@tiojoca
Copy link

tiojoca commented Feb 11, 2019

Currently, exa returns an error given both the options the flags --across (-x) and --long (-l):

Option --across (-x) is useless given option --long (-l)

This behavior is similar to what was happening before where you couldn't use some options without the --long/-l option (#44, #152, #256), except the other way around.

Changing this behavior would not only make it more consistent with ls and the fixes for these issues but also allow extending aliases that use --across/-x with the long format — for example, this at the moment wouldn't work:

alias lx='exa --group-directories-first -aFx'
lx -l # ~> currently returns an error
@Don42
Copy link
Contributor

Don42 commented Feb 12, 2019

The solution might be related to #125, unfortunately the commit to close this ticket was quite large. But it might still be a good starting point to find a solution.

@ogham ogham self-assigned this Oct 20, 2020
@ogham ogham added the features › arguments Command-line argument parsing label Oct 20, 2020
@ogham
Copy link
Owner

ogham commented Oct 20, 2020

Yeah, this should only be happening in strict mode, but for some reason it's not.

@ogham ogham closed this as completed in eb90b4d Oct 20, 2020
@ogham ogham added this to the v0.10.0 milestone Oct 20, 2020
@ogham
Copy link
Owner

ogham commented Oct 20, 2020

Will be fixed in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
features › arguments Command-line argument parsing
Projects
None yet
Development

No branches or pull requests

3 participants