(cmd *Command)
| 468 | } |
| 469 | |
| 470 | func checkVersion(cmd *Command) bool { |
| 471 | return cmd.versionFlag != nil && cmd.versionFlag.IsSet() |
| 472 | } |
| 473 | |
| 474 | func checkShellCompleteFlag(c *Command, arguments []string) (bool, []string) { |
| 475 | if (c.parent == nil && !c.EnableShellCompletion) || (c.parent != nil && !c.Root().shellCompletion) { |