aboutsummaryrefslogtreecommitdiff
path: root/flag.go
diff options
context:
space:
mode:
Diffstat (limited to 'flag.go')
-rw-r--r--flag.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/flag.go b/flag.go
index 9beeda8..60c2038 100644
--- a/flag.go
+++ b/flag.go
@@ -190,6 +190,12 @@ type Value interface {
Type() string
}
+type SliceValue interface {
+ Append(string) error
+ Replace([]string) error
+ GetSlice() []string
+}
+
// sortFlags returns the flags as a slice in lexicographical sorted order.
func sortFlags(flags map[NormalizedName]*Flag) []*Flag {
list := make(sort.StringSlice, len(flags))