mirror of
https://github.com/restic/restic.git
synced 2025-12-29 13:17:28 +00:00
features: print warning for stable/depreacted feature flags
This commit is contained in:
@@ -104,7 +104,9 @@ func main() {
|
||||
// we can show the logs
|
||||
log.SetOutput(logBuffer)
|
||||
|
||||
err := feature.Flag.Apply(os.Getenv("RESTIC_FEATURES"))
|
||||
err := feature.Flag.Apply(os.Getenv("RESTIC_FEATURES"), func(s string) {
|
||||
fmt.Fprintln(os.Stderr, s)
|
||||
})
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
Exit(1)
|
||||
|
||||
Reference in New Issue
Block a user