diff --git a/cmd/root/root.go b/cmd/root/root.go index adb698f..24b7176 100644 --- a/cmd/root/root.go +++ b/cmd/root/root.go @@ -47,7 +47,7 @@ func GetCommand() *cobra.Command { Use: "pget [flags] ", Short: "pget", Long: rootLongDesc, - PreRunE: func(cmd *cobra.Command, args []string) error { + PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if err := config.PersistentStartupProcessFlags(); err != nil { return err }