IntersectMBO / cardano-node

The core component that is used to participate in a Cardano decentralised blockchain.
https://cardano.org
Apache License 2.0
3.06k stars 721 forks source link

[BUG] - Help of "cardano-cli query protocol-parameters" command shows "--epoch-slots" twice #2639

Closed vs4vijay closed 1 year ago

vs4vijay commented 3 years ago

Internal/External External

Area Other

Summary Help of "cardano-cli query protocol-parameters" command shows "--epoch-slots" twice.

Steps to reproduce Steps to reproduce the behavior: docker run -e --entrypoint cardano-cli -it inputoutput/cardano-node:latest query protocol-parameters

Expected behavior "--epoch-slots" option should be listed only once.

System info (please complete the following information): Docker Image: inputoutput/cardano-node:1.26.2 cardano-cli 1.26.2 - linux-x86_64 - ghc-8.10 git rev 3531289c9f79eab7ac5d3272ce6e6821504fec4c

Screenshots and attachments image

Additional context Add any other context about the problem here.

rdlrt commented 3 years ago

Duplicate of #1451

newhoggy commented 1 year ago

The offending part of the code are here:

We use optparse-applicative to parse command line arguments and it does not appear to be any means to de-duplicate help.

I'm afraid this means we will have to mark this and won't fix until this changes.