HasPersistentFlags checks if the command contains persistent flags.
()
| 1804 | |
| 1805 | // HasPersistentFlags checks if the command contains persistent flags. |
| 1806 | func (c *Command) HasPersistentFlags() bool { |
| 1807 | return c.PersistentFlags().HasFlags() |
| 1808 | } |
| 1809 | |
| 1810 | // HasLocalFlags checks if the command has flags specifically declared locally. |
| 1811 | func (c *Command) HasLocalFlags() bool { |
no test coverage detected