aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/copy.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msg/copy.go')
-rw-r--r--commands/msg/copy.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/msg/copy.go b/commands/msg/copy.go
index 4109ef99..77c9ade1 100644
--- a/commands/msg/copy.go
+++ b/commands/msg/copy.go
@@ -10,7 +10,7 @@ import (
type Copy struct {
CreateFolders bool `opt:"-p"`
- Folder string `opt:"..." metavar:"<folder>"`
+ Folder string `opt:"folder" complete:"CompleteFolder"`
}
func init() {
@@ -21,8 +21,8 @@ func (Copy) Aliases() []string {
return []string{"cp", "copy"}
}
-func (Copy) Complete(args []string) []string {
- return commands.GetFolders(args)
+func (*Copy) CompleteFolder(arg string) []string {
+ return commands.GetFolders(arg)
}
func (c Copy) Execute(args []string) error {