aboutsummaryrefslogtreecommitdiffstats
path: root/commands/help.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/help.go')
-rw-r--r--commands/help.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/help.go b/commands/help.go
index b2bcdf7c..07332303 100644
--- a/commands/help.go
+++ b/commands/help.go
@@ -7,7 +7,7 @@ import (
)
type Help struct {
- Topic string `opt:"topic" action:"ParseTopic" default:"aerc"`
+ Topic string `opt:"topic" action:"ParseTopic" default:"aerc" complete:"CompleteTopic"`
}
var pages = []string{
@@ -35,8 +35,8 @@ func (Help) Aliases() []string {
return []string{"help"}
}
-func (Help) Complete(args []string) []string {
- return CompletionFromList(pages, args)
+func (*Help) CompleteTopic(arg string) []string {
+ return CompletionFromList(pages, arg)
}
func (h *Help) ParseTopic(arg string) error {