lsd icon indicating copy to clipboard operation
lsd copied to clipboard

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

Open vermaden opened this issue 1 year ago • 0 comments

Version

  • [X] 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

vermaden avatar Jan 23 '24 13:01 vermaden