aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-04-10 05:42:17 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-04-10 05:42:17 +0800
commit4de1e1609abb2e5be7e5cc5b8f206d305af8ce27 (patch)
tree4197a997d4c3efea62e9063097e2273183a58ce0
parentec9fbf09aaeadd7b5c2f3126b27c225d13d41683 (diff)
parentdc2b9fd458bbd4b41c83c5d6590d4d9f542458d0 (diff)
downloaddexon-4de1e1609abb2e5be7e5cc5b8f206d305af8ce27.tar
dexon-4de1e1609abb2e5be7e5cc5b8f206d305af8ce27.tar.gz
dexon-4de1e1609abb2e5be7e5cc5b8f206d305af8ce27.tar.bz2
dexon-4de1e1609abb2e5be7e5cc5b8f206d305af8ce27.tar.lz
dexon-4de1e1609abb2e5be7e5cc5b8f206d305af8ce27.tar.xz
dexon-4de1e1609abb2e5be7e5cc5b8f206d305af8ce27.tar.zst
dexon-4de1e1609abb2e5be7e5cc5b8f206d305af8ce27.zip
Merge pull request #682 from bas-vk/issue_567
bugfix as a result of PR 671
-rw-r--r--cmd/utils/customflags.go7
1 files changed, 3 insertions, 4 deletions
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) {