aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/move.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msg/move.go')
-rw-r--r--commands/msg/move.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/msg/move.go b/commands/msg/move.go
index 1dd68d35..06c7fc15 100644
--- a/commands/msg/move.go
+++ b/commands/msg/move.go
@@ -14,7 +14,7 @@ import (
type Move struct {
CreateFolders bool `opt:"-p"`
- Folder string `opt:"..." metavar:"<folder>"`
+ Folder string `opt:"folder" complete:"CompleteFolder"`
}
func init() {
@@ -25,8 +25,8 @@ func (Move) Aliases() []string {
return []string{"mv", "move"}
}
-func (Move) Complete(args []string) []string {
- return commands.GetFolders(args)
+func (*Move) CompleteFolder(arg string) []string {
+ return commands.GetFolders(arg)
}
func (m Move) Execute(args []string) error {