Skip to content

Commit

Permalink
BUGFIX: ensure --resolve and -v work in multifile mode (#96)
Browse files Browse the repository at this point in the history
rootCMD was changed (erroneously) to use 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 authored Dec 10, 2023
1 parent 297b98c commit 241f65a
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 241f65a

Please sign in to comment.