Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/urfave/cli
/ propagateCategory
Method
propagateCategory
flag_mutex.go:46–54 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
44
}
45
46
func
(grp MutuallyExclusiveFlags) propagateCategory() {
47
for
_, grpf :=
range
grp.Flags {
48
for
_, f :=
range
grpf {
49
if
cf, ok := f.(CategorizableFlag); ok {
50
cf.SetCategory(grp.Category)
51
}
52
}
53
}
54
}
Callers
3
setupDefaults
Method · 0.80
setupSubcommand
Method · 0.80
TestCommand_VisibleFlagCategories
Function · 0.80
Calls
1
SetCategory
Method · 0.65
Tested by
1
TestCommand_VisibleFlagCategories
Function · 0.64