cosmos / gaia

Cosmos Hub
https://hub.cosmos.network
Apache License 2.0
475 stars 693 forks source link

[Bug]: Duplicate lines in help menu for gaiad tx #3412

Open dasanchez opened 2 days ago

dasanchez commented 2 days ago

Is there an existing issue for this?

What happened?

The gaiad tx command prints modules that have commands available. The following modules show up twice:

Gaia Version

v21.0.0

How to reproduce?

Run gaiad tx:

gaiad tx
Transactions subcommands

Usage:
  gaiad tx [flags]
  gaiad tx [command]

Available Commands:

  auth                Transactions commands for the auth module
  authz               Authorization transactions subcommands
  bank                Bank transaction subcommands
  broadcast           Broadcast transactions generated offline
  consensus           Transactions commands for the consensus module
  crisis              Transactions commands for the crisis module
  decode              Decode a binary encoded transaction string
  distribution        Distribution transactions subcommands
  encode              Encode transactions generated offline
  evidence            Evidence transaction subcommands
  feegrant            Feegrant transactions sub-commands
  gov                 Governance transactions subcommands
  ibc                 IBC transaction subcommands
  ibc-fee             IBC relayer incentivization transaction subcommands
  ibc-fee             IBC relayer incentivization transaction subcommands
  ibc-transfer        IBC fungible token transfer transaction subcommands
  ibc-transfer        IBC fungible token transfer transaction subcommands
  interchain-accounts IBC interchain accounts transaction subcommands
  interchain-accounts IBC interchain accounts transaction subcommands
  mint                Transactions commands for the mint module
...
MSalopek commented 2 days ago

Thanks for opening the issue!

I guess there's an extra registration in /cmd that was not removed.

AutoCLI is supposed to do CLI registrations for IBC.