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

mc cp -h returning unexpected "}" in operand error #3055

Closed
kaankabalak opened this issue Jan 20, 2020 · 1 comment
Closed

mc cp -h returning unexpected "}" in operand error #3055

kaankabalak opened this issue Jan 20, 2020 · 1 comment

Comments

@kaankabalak
Copy link
Collaborator

Expected behavior

mc cp -h command should be returning the help prompt instead of an error.

Actual behavior

mc cp -h command returns the following error:

panic: template: help:62: unexpected "}" in operand

goroutine 1 [running]:
text/template.Must(...)
	/opt/go/src/text/template/helper.go:23
github.com/minio/cli.printHelpCustom(0x1a7d240, 0xc00000e018, 0x198a6f5, 0xe42, 0x1938a80, 0xc000199500, 0x0)
	/q/.q/sources/gopath/pkg/mod/github.com/minio/cli@v1.22.0/help.go:260 +0x514
github.com/minio/cli.ShowCommandHelp(0xc000285520, 0x1942769, 0x2, 0x1, 0xc000285520)
	/q/.q/sources/gopath/pkg/mod/github.com/minio/cli@v1.22.0/help.go:203 +0x4ae
github.com/minio/cli.checkCommandHelp(0xc000285520, 0x1942769, 0x2, 0xc000215440)
	/q/.q/sources/gopath/pkg/mod/github.com/minio/cli@v1.22.0/help.go:303 +0x7d
github.com/minio/cli.Command.Run(0x1942769, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x194b55e, 0xc, 0x0, ...)
	/q/.q/sources/gopath/pkg/mod/github.com/minio/cli@v1.22.0/command.go:192 +0x930
github.com/minio/cli.(*App).Run(0xc000284000, 0xc0000300c0, 0x3, 0x3, 0x0, 0x0)
	/q/.q/sources/gopath/pkg/mod/github.com/minio/cli@v1.22.0/app.go:261 +0x6ab
github.com/minio/mc/cmd.Main(0xc0000300c0, 0x3, 0x3)
	/q/.q/sources/gopath/src/github.com/minio/mc/cmd/main.go:113 +0x29c
main.main()
	/q/.q/sources/gopath/src/github.com/minio/mc/main.go:34 +0x45

Steps to reproduce the behavior

Type the mc cp -h command.

mc --version

  • RELEASE.2020-01-13T22-49-03Z

System information

macOS Catalina Version 10.15.1

@kaankabalak kaankabalak changed the title mc cp -h returning error mc cp -h returning unexpected "}" in operand error Jan 20, 2020
@kaankabalak
Copy link
Collaborator Author

Fixed with #3047

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