diff --git a/src/restic/options/options.go b/src/restic/options/options.go index 55ef59609..92e60cf03 100644 --- a/src/restic/options/options.go +++ b/src/restic/options/options.go @@ -192,6 +192,14 @@ func (o Options) Apply(ns string, dst interface{}) error { v.Field(i).SetInt(vi) + case "uint": + vi, err := strconv.ParseUint(value, 0, 32) + if err != nil { + return err + } + + v.Field(i).SetUint(vi) + case "Duration": d, err := time.ParseDuration(value) if err != nil {