Skip to content
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

Closed
jackzampolin opened this issue Aug 10, 2018 · 5 comments
Closed

--encoding option needs to be removed as it is no longer in use #1961

jackzampolin opened this issue Aug 10, 2018 · 5 comments
Assignees
Labels

Comments

@jackzampolin
Copy link
Member

The CLI has a top level --encoding option that is no longer useful since we switched to bech32 this needs to be removed.

@mslipper
Copy link
Contributor

So the encoding flag is defined by the tendermint binary and mixed into the gaiacli command by this method in Tendermint's setup.go:

// 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 gaiacli. Is this OK?

@jackzampolin
Copy link
Member Author

That is cool. Just tag me on the PR. That flag shouldn't be in gaiacli

@alexanderbez
Copy link
Contributor

Yeah I think it should just be removed from TM?

@jackzampolin
Copy link
Member Author

I think tendermint still uses some of the other key formats, so they might need it... cc @jlandrews

@zramsay
Copy link
Contributor

zramsay commented Aug 27, 2018

#1838

@zramsay zramsay closed this as completed Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants