aboutsummaryrefslogtreecommitdiffstats
path: root/commands/account/cf.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/account/cf.go')
-rw-r--r--commands/account/cf.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/account/cf.go b/commands/account/cf.go
index 59203a89..d73d4978 100644
--- a/commands/account/cf.go
+++ b/commands/account/cf.go
@@ -11,7 +11,7 @@ import (
var history map[string]string
type ChangeFolder struct {
- Folder string `opt:"..." metavar:"<folder>"`
+ Folder string `opt:"folder" complete:"CompleteFolder"`
}
func init() {
@@ -23,8 +23,8 @@ func (ChangeFolder) Aliases() []string {
return []string{"cf"}
}
-func (ChangeFolder) Complete(args []string) []string {
- return commands.GetFolders(args)
+func (*ChangeFolder) CompleteFolder(arg string) []string {
+ return commands.GetFolders(arg)
}
func (c ChangeFolder) Execute(args []string) error {