mirror of
https://github.com/containers/podman.git
synced 2025-10-16 02:32:55 +08:00
spf13/pflag: replace deprecated ParseErrorsWhitelist
Use ParseErrorsAllowlist instead, should still work the exact same. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -358,7 +358,7 @@ func executeContainerTemplate(info *containerInfo, options entities.GenerateSyst
|
||||
remainingCmd := info.CreateCommand[index:]
|
||||
// Presence check for certain flags/options.
|
||||
fs := pflag.NewFlagSet("args", pflag.ContinueOnError)
|
||||
fs.ParseErrorsWhitelist.UnknownFlags = true
|
||||
fs.ParseErrorsAllowlist.UnknownFlags = true
|
||||
fs.Usage = func() {}
|
||||
fs.SetInterspersed(false)
|
||||
fs.BoolP("detach", "d", false, "")
|
||||
|
Reference in New Issue
Block a user