We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98b7aff commit becd4f3Copy full SHA for becd4f3
1 file changed
mapper.go
@@ -541,8 +541,12 @@ func sliceDecoder(r *Registry) MapperFunc {
541
if ctx.Value.Flag != nil {
542
t := ctx.Scan.Pop()
543
// If decoding a flag, we need a value.
544
+ tail := ""
545
+ if sep != -1 {
546
+ tail += string(sep) + "..."
547
+ }
548
if t.IsEOL() {
- return fmt.Errorf("missing value, expecting \"<arg>%c...\"", sep)
549
+ return fmt.Errorf("missing value, expecting \"<arg>%s\"", tail)
550
}
551
switch v := t.Value.(type) {
552
case string:
0 commit comments