NonInheritedFlags returns all flags which were not inherited from parent commands. This function does not modify the flags of the current command, it's purpose is to return the current state.
()
| 1768 | // NonInheritedFlags returns all flags which were not inherited from parent commands. |
| 1769 | // This function does not modify the flags of the current command, it's purpose is to return the current state. |
| 1770 | func (c *Command) NonInheritedFlags() *flag.FlagSet { |
| 1771 | return c.LocalFlags() |
| 1772 | } |
| 1773 | |
| 1774 | // PersistentFlags returns the persistent FlagSet specifically set in the current command. |
| 1775 | func (c *Command) PersistentFlags() *flag.FlagSet { |
no test coverage detected