summaryrefslogtreecommitdiffstats
path: root/cmd/jp/flag.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/jp/flag.go')
-rw-r--r--cmd/jp/flag.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/jp/flag.go b/cmd/jp/flag.go
index 533b35d..eeec98c 100644
--- a/cmd/jp/flag.go
+++ b/cmd/jp/flag.go
@@ -6,8 +6,8 @@ import (
)
type enumVar struct {
- Choices []string // The acceptable choices the user may pass to the flag
- Value string // the current value of the flag
+ Choices []string
+ Value string
}
// Set implements the flag.Value interface.
@@ -18,7 +18,7 @@ func (so *enumVar) Set(v string) error {
return nil
}
}
- return fmt.Errorf("invalid choice; must be one of %s", strings.Join(so.Choices, ","))
+ return fmt.Errorf("must be one of [%s]", strings.Join(so.Choices, " "))
}
func (so *enumVar) String() string {