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

basecli version panic: account flag redefined: indent #2884

Closed
tanhuiya opened this issue Nov 22, 2018 · 1 comment
Closed

basecli version panic: account flag redefined: indent #2884

tanhuiya opened this issue Nov 22, 2018 · 1 comment
Assignees

Comments

@tanhuiya
Copy link

tanhuiya commented Nov 22, 2018

The latest develop branch
run basecli version , got error

basecli version
panic: account flag redefined: indent

goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/pflag.(*FlagSet).AddFlag(0xc0001a9e00, 0xc000202960)
	/Users/tanhui/go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/pflag/flag.go:836 +0x870
github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/pflag.(*FlagSet).VarPF(0xc0001a9e00, 0x4ca56c0, 0xc000b54438, 0x4a745df, 0x6, 0x0, 0x0, 0x4a87a85, 0x1b, 0xc000b54438)
	/Users/tanhui/go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/pflag/flag.go:819 +0x10b
github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/pflag.(*FlagSet).BoolVarP(0xc0001a9e00, 0xc000b54438, 0x4a745df, 0x6, 0x0, 0x0, 0xc0001e5400, 0x4a87a85, 0x1b)
	/Users/tanhui/go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/pflag/bool.go:55 +0x97
github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/pflag.(*FlagSet).BoolP(0xc0001a9e00, 0x4a745df, 0x6, 0x0, 0x0, 0x0, 0x4a87a85, 0x1b, 0x0)
	/Users/tanhui/go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/pflag/bool.go:80 +0x9a
github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/pflag.(*FlagSet).Bool(0xc0001a9e00, 0x4a745df, 0x6, 0x0, 0x4a87a85, 0x1b, 0xc000b54430)
	/Users/tanhui/go/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/pflag/bool.go:74 +0x67
github.com/cosmos/cosmos-sdk/client.GetCommands(0xc000017f18, 0xe, 0xe, 0xc00098ad80, 0xb, 0xc0001a9700)
	/Users/tanhui/go/src/github.com/cosmos/cosmos-sdk/client/flags.go:58 +0x81
main.main()
	/Users/tanhui/go/src/github.com/cosmos/cosmos-sdk/docs/examples/basecoin/cmd/basecli/main.go:75 +0x5a6
@fedekunze
Copy link
Collaborator

@alessio ^^

@alessio alessio self-assigned this Nov 22, 2018
alessio pushed a commit that referenced this issue Nov 22, 2018
Logic has changed recently and commands are now enriched
with flags by default.

Closes: #2884
cwgoes added a commit that referenced this issue Nov 26, 2018
* Don't get command through client.{Get,Post}Commands()

Logic has changed recently and commands are now enriched
with flags by default.

Closes: #2884
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants