MCPcopy
hub / github.com/spf13/cobra / PositionalArgs

FuncType PositionalArgs

args.go:22–22  ·  args.go::PositionalArgs
func(cmd *Command, args []string) error

Source from the content-addressed store, hash-verified

20)
21
22type PositionalArgs func(cmd *Command, args []string) error
23
24// legacyArgs validation has the following behaviour:
25// - root commands with no subcommands can take arbitrary arguments

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected