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

[Bug]: error: The argument '--xxx' was provided more than once, but cannot be used multiple times #981

Open
1 task done
vermaden opened this issue Jan 23, 2024 · 0 comments
Assignees

Comments

@vermaden
Copy link

vermaden commented Jan 23, 2024

Version

  • latest

version

Please make lsd(1) ignore the same argument added multiple times instead of hard exit error.

It makes keeping alias(1) list very strict and limiting.

Also this check seems to be only for '--group-directories-first' argument as its perfectly fine to do this:

% lsd --total-size --total-size

While this ends in error:

% lsd --group-directories-first --group-directories-first
error: The argument '--group-directories-first' was provided more than once, but cannot be used multiple times

USAGE:
    lsd [OPTIONS] [--] [FILE]...

For more information try --help

Thanks You.

What OS are you seeing the problem on?

No response

installation

FreeBSD # pkg install lsd

term

No response

ls-colors

No response

What happened?

% lsd --group-directories-first --group-directories-first
error: The argument '--group-directories-first' was provided more than once, but cannot be used multiple times

USAGE:
    lsd [OPTIONS] [--] [FILE]...

For more information try --help

What expected?

% lsd --group-directories-first --group-directories-first
// just lists the contents as usual //

What else?

No response

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

No branches or pull requests

2 participants