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

Method NArg

command.go:628–630  ·  command.go::Command.NArg

NArg returns the number of the command line arguments.

()

Source from the content-addressed store, hash-verified

626
627// NArg returns the number of the command line arguments.
628func (cmd *Command) NArg() int {
629 return cmd.Args().Len()
630}
631
632func (cmd *Command) runFlagActions(ctx context.Context) error {
633 tracef("runFlagActions")

Calls 2

ArgsMethod · 0.95
LenMethod · 0.65