From dc2b9fd458bbd4b41c83c5d6590d4d9f542458d0 Mon Sep 17 00:00:00 2001 From: Bas van Kervel Date: Thu, 9 Apr 2015 20:06:27 +0200 Subject: bugfix as a result of PR 671 --- cmd/utils/customflags.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cmd') diff --git a/cmd/utils/customflags.go b/cmd/utils/customflags.go index a623ae19c..78a6b8d22 100644 --- a/cmd/utils/customflags.go +++ b/cmd/utils/customflags.go @@ -18,11 +18,11 @@ type DirectoryString struct { Value string } -func (self DirectoryString) String() string { +func (self *DirectoryString) String() string { return self.Value } -func (self DirectoryString) Set(value string) error { +func (self *DirectoryString) Set(value string) error { self.Value = expandPath(value) return nil } @@ -72,9 +72,8 @@ func (self DirectoryFlag) Apply(set *flag.FlagSet) { } eachName(self.Name, func(name string) { - set.Var(self.Value, self.Name, "a: "+self.Usage) + set.Var(&self.Value, self.Name, self.Usage) }) - } func prefixFor(name string) (prefix string) { -- cgit