diff options
-rw-r--r-- | cmd/podmanV2/root.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podmanV2/root.go b/cmd/podmanV2/root.go index 6fc83a26b..0639257ea 100644 --- a/cmd/podmanV2/root.go +++ b/cmd/podmanV2/root.go @@ -71,7 +71,7 @@ func preRunE(cmd *cobra.Command, _ []string) error { cmd.SetHelpTemplate(registry.HelpTemplate()) cmd.SetUsageTemplate(registry.UsageTemplate()) - if cmd.Flag("cpu_profile").Changed { + if cmd.Flag("cpu-profile").Changed { f, err := os.Create(registry.PodmanOptions.CpuProfile) if err != nil { return errors.Wrapf(err, "unable to create cpu profiling file %s", |