We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1b6c21d + 9599f34 commit 7d12ec8Copy full SHA for 7d12ec8
1 file changed
cmd/nerdctl/main.go
@@ -64,7 +64,9 @@ var (
64
// usage was derived from https://github.com/spf13/cobra/blob/v1.2.1/command.go#L491-L514
65
func usage(c *cobra.Command) error {
66
s := "Usage: "
67
- if c.Runnable() {
+ if c.HasSubCommands() {
68
+ s += c.CommandPath() + " [command]\n"
69
+ } else if c.Runnable() {
70
s += c.UseLine() + "\n"
71
} else {
72
s += c.CommandPath() + " [command]\n"
0 commit comments