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

Method Root

command.go:340–346  ·  command.go::Command.Root

Root returns the Command at the root of the graph

()

Source from the content-addressed store, hash-verified

338
339// Root returns the Command at the root of the graph
340func (cmd *Command) Root() *Command {
341 if cmd.parent == nil {
342 return cmd
343 }
344
345 return cmd.parent.Root()
346}
347
348func (cmd *Command) set(fName string, f Flag, val string) error {
349 cmd.setFlags[f] = struct{}{}

Calls

no outgoing calls