Add <command> to help when a sub-command is required.

This commit is contained in:
Alec Thomas
2018-06-08 15:04:26 +10:00
parent d30421d2b1
commit 73064a687f
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -89,6 +89,8 @@ func (n *Node) Summary() string {
}
if len(args) != 0 {
summary += " " + strings.Join(args, " ")
} else if len(n.Children) > 0 {
summary += " <command>"
}
return summary
}