Skip to content

Commit

Permalink
BUGFIX: ensure --resolve and -v work in multifile mode
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tempusfrangit committed Dec 10, 2023
1 parent 297b98c commit d8b2166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func GetCommand() *cobra.Command {
Use: "pget [flags] <url> <dest>",
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
}
Expand Down

0 comments on commit d8b2166

Please sign in to comment.