HasFlags checks if the command contains any flags (local plus persistent from the entire structure).
()
| 1799 | |
| 1800 | // HasFlags checks if the command contains any flags (local plus persistent from the entire structure). |
| 1801 | func (c *Command) HasFlags() bool { |
| 1802 | return c.Flags().HasFlags() |
| 1803 | } |
| 1804 | |
| 1805 | // HasPersistentFlags checks if the command contains persistent flags. |
| 1806 | func (c *Command) HasPersistentFlags() bool { |
no test coverage detected