Skip to content

Commit d75fac8

Browse files
committed
Fix a bug where command line arguments weren't being parsed on time
1 parent 3329e19 commit d75fac8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/root.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ func NewRootCmd(out io.Writer, args []string) (*cobra.Command, error) {
2929

3030
loadPluginCommands(rootCmd, out, args)
3131

32+
rootCmd.PersistentFlags().Parse(args)
33+
3234
log.Init(&settings, out)
3335

3436
return rootCmd, nil

0 commit comments

Comments
 (0)