Skip to content

commands: Description generator panics if there is no option description #3520

Closed

Description

@Kubuxu
goroutine 1 [running]:
panic(0xc12b00, 0xc420016210)
	/usr/local/go/src/runtime/panic.go:500 +0x1a1
github.com/ipfs/go-ipfs/commands.(*option).Description(0xc4202562c0, 0x1, 0x1)
	/home/ubuntu/.go_workspace/src/github.com/ipfs/go-ipfs/commands/option.go:46 +0x2e2
github.com/ipfs/go-ipfs/commands/cli.optionText(0xc420237c90, 0x1, 0x1, 0xcfb267, 0x1, 0xc42001ae00)
	/home/ubuntu/.go_workspace/src/github.com/ipfs/go-ipfs/commands/cli/helptext.go:343 +0x94c
github.com/ipfs/go-ipfs/commands/cli.LongHelp(0xcfcb77, 0x4, 0x123bfe0, 0xc420019500, 0x3, 0x4, 0x114da60, 0xc420032010, 0x100000001158bc0, 0xc420237e00)
	/home/ubuntu/.go_workspace/src/github.com/ipfs/go-ipfs/commands/cli/helptext.go:160 +0x45a
main.main.func2(0xc420019401, 0x114da60, 0xc420032010)
	/home/ubuntu/.go_workspace/src/github.com/ipfs/go-ipfs/cmd/ipfs/main.go:94 +0x8b
main.main()
	/home/ubuntu/.go_workspace/src/github.com/ipfs/go-ipfs/cmd/ipfs/main.go:125 +0x617

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugA bug in existing code (including security flaws)topic/commandsTopic commands

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions