[Bug]: error: The argument '--xxx' was provided more than once, but cannot be used multiple times
Open
@zwpaper is already working on this.
Since Jan 23, 2024.
- Dominant language
- Rust
- Stars
- 16.2k
- Forks
- 510
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.