aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@ziggo.nl>2015-04-10 02:06:27 +0800
committerBas van Kervel <basvankervel@ziggo.nl>2015-04-10 02:06:27 +0800
commitdc2b9fd458bbd4b41c83c5d6590d4d9f542458d0 (patch)
treecf0c6ea3fb3a79b3d355b8100cfd9b85306f48f2 /cmd/utils
parent6da5b2fc5fc0fe703158411afcd4f05add0336f2 (diff)
downloaddexon-dc2b9fd458bbd4b41c83c5d6590d4d9f542458d0.tar
dexon-dc2b9fd458bbd4b41c83c5d6590d4d9f542458d0.tar.gz
dexon-dc2b9fd458bbd4b41c83c5d6590d4d9f542458d0.tar.bz2
dexon-dc2b9fd458bbd4b41c83c5d6590d4d9f542458d0.tar.lz
dexon-dc2b9fd458bbd4b41c83c5d6590d4d9f542458d0.tar.xz
dexon-dc2b9fd458bbd4b41c83c5d6590d4d9f542458d0.tar.zst
dexon-dc2b9fd458bbd4b41c83c5d6590d4d9f542458d0.zip
bugfix as a result of PR 671
Diffstat (limited to 'cmd/utils')
-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) {