From 190b1cdcc7d8848d7e57c0801de204c121c788f3 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Thu, 1 Jan 2015 11:17:34 +0100 Subject: [PATCH] Fix 'ls' command CmdLs needs to implement flags.Commander, so change (CmdLs) Execute to only take a []string to get actually called. --- cmd/restic/cmd_ls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_ls.go b/cmd/restic/cmd_ls.go index a34f6664f..e769ee456 100644 --- a/cmd/restic/cmd_ls.go +++ b/cmd/restic/cmd_ls.go @@ -63,7 +63,7 @@ func (cmd CmdLs) Usage() string { return "snapshot-ID [DIR]" } -func (cmd CmdLs) Execute(s restic.Server, key *restic.Key, args []string) error { +func (cmd CmdLs) Execute(args []string) error { if len(args) < 1 || len(args) > 2 { return fmt.Errorf("wrong number of arguments, Usage: %s", cmd.Usage()) }