good morning!!!!

Skip to content
Snippets Groups Projects
Commit 4de1e160 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Merge pull request #682 from bas-vk/issue_567

bugfix as a result of PR 671
parents ec9fbf09 dc2b9fd4
No related branches found
No related tags found
No related merge requests found
...@@ -18,11 +18,11 @@ type DirectoryString struct { ...@@ -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) { ...@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment