MCPcopy
hub / github.com/spf13/cobra / HasInheritedFlags

Method HasInheritedFlags

command.go:1816–1818  ·  view source on GitHub ↗

HasInheritedFlags checks if the command has flags inherited from its parent command.

()

Source from the content-addressed store, hash-verified

1814
1815// HasInheritedFlags checks if the command has flags inherited from its parent command.
1816func (c *Command) HasInheritedFlags() bool {
1817 return c.InheritedFlags().HasFlags()
1818}
1819
1820// HasAvailableFlags checks if the command contains any flags (local plus persistent from the entire
1821// structure) which are not hidden or deprecated.

Callers

nothing calls this directly

Calls 2

InheritedFlagsMethod · 0.95
HasFlagsMethod · 0.80

Tested by

no test coverage detected