-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--encoding
option needs to be removed as it is no longer in use
#1961
Comments
So the encoding flag is defined by the tendermint binary and mixed into the // PrepareMainCmd is meant for client side libs that want some more flags
//
// This adds --encoding (hex, btc, base64) and --output (text, json) to
// the command. These only really make sense in interactive commands.
func PrepareMainCmd(cmd *cobra.Command, envPrefix, defaultHome string) Executor {
cmd.PersistentFlags().StringP(EncodingFlag, "e", "hex", "Binary encoding (hex|b64|btc)")
cmd.PersistentFlags().StringP(OutputFlag, "o", "text", "Output format (text|json)")
cmd.PersistentPreRunE = concatCobraCmdFuncs(validateOutput, cmd.PersistentPreRunE)
return PrepareBaseCmd(cmd, envPrefix, defaultHome)
} To confirm, I'll basically be moving this functionality into |
That is cool. Just tag me on the PR. That flag shouldn't be in |
Yeah I think it should just be removed from TM? |
I think tendermint still uses some of the other key formats, so they might need it... cc @jlandrews |
The CLI has a top level
--encoding
option that is no longer useful since we switched tobech32
this needs to be removed.The text was updated successfully, but these errors were encountered: