lsd-rs / lsd-rs/lsd

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

Open
#981 0 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.