MCPcopy
hub / github.com/urfave/cli / checkVersion

Function checkVersion

help.go:470–472  ·  view source on GitHub ↗
(cmd *Command)

Source from the content-addressed store, hash-verified

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

Callers 1

runMethod · 0.85

Calls 1

IsSetMethod · 0.65

Tested by

no test coverage detected