Skip to content

Commit 4063890

Browse files
Merge pull request #12 from andreimerlescu/hotfix/flag-var
Adjusted error handling and moved flag.Var to tree.flagSet.Var
2 parents 33b4d54 + dcac5d4 commit 4063890

File tree

9 files changed

+225
-161
lines changed

9 files changed

+225
-161
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.0.12
1+
v2.0.13

alias.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package figtree
22

33
import (
4-
"flag"
54
"fmt"
65
"strings"
76
)
@@ -25,6 +24,6 @@ func (tree *figTree) WithAlias(name, alias string) Plant {
2524
fmt.Println("failed to cast -" + name + " value")
2625
return tree
2726
}
28-
flag.Var(value, alias, "Alias of -"+name)
27+
tree.flagSet.Var(value, alias, "Alias of -"+name)
2928
return tree
3029
}

0 commit comments

Comments
 (0)