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

help leads to panic #44

Open
gu1p opened this issue Jan 14, 2020 · 0 comments
Open

help leads to panic #44

gu1p opened this issue Jan 14, 2020 · 0 comments

Comments

@gu1p
Copy link

gu1p commented Jan 14, 2020

go1.13 linux/amd64 on Ubuntu 18.04.3

> help
panic: runtime error: index out of range [1] with length 0

goroutine 1 [running]:
github.com/takashabe/btcli/pkg/cmd/interactive.lazyDoHelp(0xb38000, 0xc0000cc010, 0xb3ab80, 0xc00031f050, 0xc0005dc410, 0x0, 0x0)
        /home/gustavoip/go/pkg/mod/github.com/takashabe/[email protected]/pkg/cmd/interactive/executor.go:66 +0x339
github.com/takashabe/btcli/pkg/cmd/interactive.doHelp(0xb38000, 0xc0000cc010, 0xb3ab80, 0xc00031f050, 0xc0005dc410, 0x0, 0x0)
        /home/gustavoip/go/pkg/mod/github.com/takashabe/[email protected]/pkg/cmd/interactive/executor.go:19 +0x6e
github.com/takashabe/btcli/pkg/cmd/interactive.(*Executor).Do(0xc0004e05c0, 0xc000324000, 0x4)
        /home/gustavoip/go/pkg/mod/github.com/takashabe/[email protected]/pkg/cmd/interactive/executor.go:49 +0x348
github.com/c-bata/go-prompt.(*Prompt).Run(0xc00013c280)
        /home/gustavoip/go/pkg/mod/github.com/c-bata/[email protected]/prompt.go:85 +0x80e
github.com/takashabe/btcli/pkg/cmd/interactive.(*CLI).Run(0xc0000acf00, 0xc0000d4000, 0x5, 0x5, 0x0)
        /home/gustavoip/go/pkg/mod/github.com/takashabe/[email protected]/pkg/cmd/interactive/interactive.go:65 +0x570
main.main()
        /home/gustavoip/go/pkg/mod/github.com/takashabe/[email protected]/cmd/btcli/btcli.go:22 +0xdf

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

No branches or pull requests

1 participant