From 186ab8dddad6aa51849012c6b3be19308c5f5565 Mon Sep 17 00:00:00 2001 From: Jun Nishimura Date: Mon, 17 Jul 2023 01:13:56 +0900 Subject: [PATCH] update user_guid --- site/content/user_guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/user_guide.md b/site/content/user_guide.md index 04971431..28277bd6 100644 --- a/site/content/user_guide.md +++ b/site/content/user_guide.md @@ -525,7 +525,7 @@ around it. In fact, you can provide your own if you want. Cobra supports grouping of available commands in the help output. To group commands, each group must be explicitly defined using `AddGroup()` on the parent command. Then a subcommand can be added to a group using the `GroupID` element -of that subcommand. The groups will appear in the help output in the same order as they are defined using different +of that subcommand. `RemoveGroup()` can be used to remove groups and initialize the GroupID of commands belonging to the removed group. The groups will appear in the help output in the same order as they are defined using different calls to `AddGroup()`. If you use the generated `help` or `completion` commands, you can set their group ids using `SetHelpCommandGroupId()` and `SetCompletionCommandGroupId()` on the root command, respectively.