nerdctl
nerdctl copied to clipboard
Incorrect usage is displayed when running nerdctl without any command
Description
Without any command passed to client, it's display [flags] instead of [command] in usage
Steps to reproduce the issue
- Run
go build .insidecmd/nerdctl - Run
./nerdctl
Describe the results you received and expected
Received Usage: nerdctl [flags]
Expected Usage: nerdctl [command]
What version of nerdctl are you using?
v2.0.0-rc.0
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
No response
https://github.com/containerd/nerdctl/blob/bc24aa95d8b2b0b2342b88fbf97d1a44a961aac2/cmd/nerdctl/main.go#L55
I think this line should be replaced with if c != c.Root()
@AkihiroSuda I would like to raise a PR for this.
@AkihiroSuda I would like to raise a PR for this.
please go ahead!
@narharim curious if you are still interested in working on this?