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

Add option to disable strict parsing options #570

Closed
NightMachinery opened this issue Aug 12, 2019 · 4 comments
Closed

Add option to disable strict parsing options #570

NightMachinery opened this issue Aug 12, 2019 · 4 comments
Labels
X › duplicate Duplicate issues
Milestone

Comments

@NightMachinery
Copy link

exa exits with an error if I use "useless options":

$ exa -a --oneline -l
Option --oneline (-1) is useless given option --long (-l)

This limits my ability to easily create aliases. I want an option where exa just chills out. :))

@NightMachinery
Copy link
Author

Bumping this; I'm starting to think that I should create a wrapper around exa just to solve this problem.

@NightMachinery
Copy link
Author

NightMachinery commented Apr 26, 2020

exa() {
    local arg long=''
    for arg in "$@"
    do
        [[ "$arg" == "-l" || "$arg" == "--long" ]] && long='y'
    done
    if test -z "$long"
    then
        command exa -1 "$@"
    else
        command exa "$@"
    fi
}

This is really awful UX though. It's even a bug considering there is EXA_STRICT in the manpage.

@sdmtr
Copy link

sdmtr commented May 24, 2020

Another vote for this. I have ls aliased to exa -la and this issue is pretty annoying.

@ogham
Copy link
Owner

ogham commented Oct 21, 2020

Yeah, this was a bug where strict mode wasn't being checked for. It's been fixed (#476) and will go out in the next release.

@ogham ogham closed this as completed Oct 21, 2020
@ogham ogham added the X › duplicate Duplicate issues label Oct 21, 2020
@ogham ogham added this to the v0.10.0 milestone Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
X › duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

3 participants