bugfix as a result of PR 671

pull/682/head
Bas van Kervel 10 years ago
parent 6da5b2fc5f
commit dc2b9fd458
  1. 7
      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) {

Loading…
Cancel
Save