2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 02:48:55 +00:00

Merge pull request #68 from yath/cmd_ls

Fix 'ls' command
This commit is contained in:
Alexander Neumann 2015-01-01 13:11:15 +01:00
commit dd040a4132

View File

@ -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())
}