MCPcopy Create free account
hub / github.com/dim-an/cod / tryParseUnnamedPositionalParagraph

Function tryParseUnnamedPositionalParagraph

parse_doc/argparse.go:298–306  ·  view source on GitHub ↗
(par *lineTree, usage *argparseUsage, res *parseResult)

Source from the content-addressed store, hash-verified

296}
297
298func tryParseUnnamedPositionalParagraph(par *lineTree, usage *argparseUsage, res *parseResult) bool {
299 if len(par.children) != 1 {
300 return false
301 }
302 if !unnamedSequenceRe.MatchString(par.children[0].line) {
303 return false
304 }
305 return extractPositionalArgs(par, usage, res)
306}
307
308type argparseParser struct{}
309

Callers 1

ParseMethod · 0.85

Calls 2

extractPositionalArgsFunction · 0.85
MatchStringMethod · 0.65

Tested by

no test coverage detected