forked from cerc-io/plugeth
Merge pull request #682 from bas-vk/issue_567
bugfix as a result of PR 671
This commit is contained in:
commit
4de1e1609a
@ -18,11 +18,11 @@ type DirectoryString struct {
|
|||||||
Value string
|
Value string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self DirectoryString) String() string {
|
func (self *DirectoryString) String() string {
|
||||||
return self.Value
|
return self.Value
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self DirectoryString) Set(value string) error {
|
func (self *DirectoryString) Set(value string) error {
|
||||||
self.Value = expandPath(value)
|
self.Value = expandPath(value)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@ -72,9 +72,8 @@ func (self DirectoryFlag) Apply(set *flag.FlagSet) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
eachName(self.Name, func(name string) {
|
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) {
|
func prefixFor(name string) (prefix string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user