From d8b2166e2c915fb2c3e5fc4e6ab1cdc95d84019c Mon Sep 17 00:00:00 2001 From: Morgan Fainberg Date: Sat, 9 Dec 2023 21:18:42 -0800 Subject: [PATCH] BUGFIX: ensure --resolve and -v work in multifile mode rootCMD was changeds to have a PreRunE not a PersistentPreRunE that caused --resolve and -v to be properly handled. This meant multifile could not rely on --resolve or -v for anything useful (they were never "set" from multifile's perspective) Closes: #95 --- cmd/root/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }