fix(bonfire): read the =value forms of the global flags and use the parsed globals in the error block (IN-02, quick-261028-rqd)
This commit is contained in:
@@ -152,6 +152,9 @@ func NewRootIO(name string, commands []Command, in io.Reader, out, errW io.Write
|
||||
g = flags.globals()
|
||||
}
|
||||
output.setGlobals(g)
|
||||
if parsed, ok := cmd.Context().Value(parsedGlobalsKey{}).(*parsedGlobals); ok && parsed != nil {
|
||||
parsed.g, parsed.set = g, true
|
||||
}
|
||||
for _, hook := range cfg.hooks {
|
||||
hook(g)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user