Documentation for built-in aliases
This commit is contained in:
parent
06e438b4b4
commit
6509ba72df
1 changed files with 4 additions and 0 deletions
|
|
@ -131,6 +131,10 @@ func rootHelpFunc(f *cmdutil.Factory, command *cobra.Command, args []string) {
|
|||
}
|
||||
helpEntries = append(helpEntries, helpEntry{"USAGE", command.UseLine()})
|
||||
|
||||
if len(command.Aliases) > 0 {
|
||||
helpEntries = append(helpEntries, helpEntry{"ALIASES", strings.Join(command.Aliases, "\n")})
|
||||
}
|
||||
|
||||
for _, g := range GroupedCommands(command) {
|
||||
var names []string
|
||||
for _, c := range g.Commands {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue