lsd-rs / lsd

The next gen ls command
Apache License 2.0
12.85k stars 420 forks source link

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

Open vermaden opened 5 months ago

vermaden commented 5 months ago

Version

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