tldr-pages / tldr-c-client

C command-line client for tldr pages
MIT License
293 stars 50 forks source link

`-l` option for `tldr` command is ambiguous, inconsistent with help message #108

Closed Producdevity closed 7 months ago

Producdevity commented 8 months ago

GitHub Issue Title:

-l option for tldr command is ambiguous, inconsistent with help message

Issue Description:

Problem Description:

When running tldr -h, the help message indicates that -l can be used as a shorthand for --list. However, using tldr -l results in the following error:

tldr: option -l is ambiguous

Steps to Reproduce:

  1. Run tldr -h to view available options.
  2. Run tldr -l.

Expected Behavior:

The -l option should behave the same as --list, listing all entries in the local database.

Actual Behavior:

An error message is displayed indicating that the -l option is ambiguous.

Environment:

Additional Information:

The --list option works as expected when used in place of -l.

Possible Solutions:

If you can identify the specific file or code section where this issue originates, I'd be happy to submit a pull request to resolve it.

kbdharun commented 8 months ago

Thanks for the issue, this would potentially be fixed by https://github.com/tldr-pages/tldr-c-client/pull/103.

Producdevity commented 8 months ago

Thanks for the issue, this would potentially be fixed by #103.

Seems like it! Can we leave this one open until verified?

kbdharun commented 8 months ago

Thanks for the issue, this would potentially be fixed by #103.

Seems like it! Can we leave this one open until verified?

Yep, merging that PR will automatically close this one. Till that I would suggest leaving it as it is.