Skip to content

43 Anatomy.Argv Contract

Varietyz edited this page Oct 5, 2026 · 2 revisions

Argv Contract — Anatomy — Bane's Lab

A member holding 14 files, 493 lines of code, 66 definitions and 20 call edges.

Canonical: https://banes-lab.com/anatomy/argv

The Anatomy

Source trees, walks and definitions

Argv Contract

View on GitHub

Files

root

A member holding 14 files, 493 lines of code, 66 definitions and 20 call edges.

Stats

Files 14

Lines of code 493

Blank lines 94

Bytes 24721

Definitions 66

Exported 50

Callable 24

Call edges 20

isolated flow 50

leaf flow 10

entry flow 3

relay flow 3

Findings no anomalies

the folder's walk 1013 steps

Folders

configuration

A container holding 2 files, 39 lines of code, 22 definitions and 0 call edges.

core

A container holding 5 files, 180 lines of code, 39 definitions and 20 call edges.

types

A container holding 1 file, 28 lines of code, 5 definitions and 0 call edges.

Files

_manifest.json

  • outside the naming grammar
  • 80 lines of code
  • 0 definitions
  • 0 call edges

index.ts

  • outside the naming grammar
  • 6 lines of code
  • 0 definitions
  • 0 call edges

package.json

  • outside the naming grammar
  • 21 lines of code
  • 0 definitions
  • 0 call edges

README.md

  • outside the naming grammar
  • generated on build
  • boundary document
  • 92 lines of code
  • 0 definitions
  • 0 call edges

tsconfig.json

  • outside the naming grammar
  • 11 lines of code
  • 0 definitions
  • 0 call edges

tsconfig.base.json

  • outside the naming grammar
  • inherited from above the member
  • 36 lines of code
  • 0 definitions
  • 0 call edges

root

_manifest.json

  • outside the naming grammar

Stats

Files 1

Lines of code 80

Blank lines 0

Bytes 5307

Definitions 0

Exported 0

Callable 0

Call edges 0

Flow classes none found

Findings no anomalies

The source is served as text at the source

root

index.ts

  • outside the naming grammar

Stats

Files 1

Lines of code 6

Blank lines 0

Bytes 525

Definitions 0

Exported 0

Callable 0

Call edges 0

Flow classes none found

Findings no anomalies

the file's walk 30 steps

Syntax kinds

export_specifier 15

identifier 15

export_statement 6

export_clause 6

string 6

string_fragment 6

program 1

Once only

program 1

The source is served as text at the source

root

package.json

  • outside the naming grammar

Stats

Files 1

Lines of code 21

Blank lines 0

Bytes 668

Definitions 0

Exported 0

Callable 0

Call edges 0

Flow classes none found

Findings no anomalies

The source is served as text at the source

root

README.md

  • outside the naming grammar
  • generated on build
  • boundary document

Stats

Files 1

Lines of code 92

Blank lines 51

Bytes 6001

Definitions 0

Exported 0

Callable 0

Call edges 0

Flow classes none found

Findings no anomalies

Document

Headings 14

Mermaid blocks 0

Path references 2

Reference constructs 0

Frontmatter fields 0

spine:1 spine · document has no --- frontmatter header

bare-path:30 conventions · path in prose must be a code span — expected: _code.info.generated/mermaid-charts.generated.md

The source is served as text at the document

The source is served as text at the source

root

tsconfig.json

  • outside the naming grammar

Stats

Files 1

Lines of code 11

Blank lines 0

Bytes 259

Definitions 0

Exported 0

Callable 0

Call edges 0

Flow classes none found

Findings no anomalies

The source is served as text at the source

root

tsconfig.base.json

  • outside the naming grammar
  • inherited from above the member

Stats

Files 1

Lines of code 36

Blank lines 0

Bytes 1218

Definitions 0

Exported 0

Callable 0

Call edges 0

Flow classes none found

Findings no anomalies

The source is served as text at the source

root

configuration

A container holding 2 files, 39 lines of code, 22 definitions and 0 call edges.

Stats

Files 2

Lines of code 39

Blank lines 20

Bytes 1886

Definitions 22

Exported 22

Callable 6

Call edges 0

isolated flow 16

leaf flow 6

Findings no anomalies

Folders

constants

A concern on the infrastructure layer holding 1 file, 9 lines of code, 9 definitions and 0 call edges.

strings

A concern on the product layer holding 1 file, 30 lines of code, 13 definitions and 0 call edges.

root configuration

constants

A concern on the infrastructure layer holding 1 file, 9 lines of code, 9 definitions and 0 call edges.

Stats

Files 1

Lines of code 9

Blank lines 8

Bytes 325

Definitions 9

Exported 9

Callable 0

Call edges 0

isolated flow 9

Findings no anomalies

Files

invocation.constants.ts

  • Subject: invocation
  • Concern: constants
  • Layer: infrastructure
  • 9 lines of code
  • 9 definitions
  • 0 call edges

root configuration constants

invocation.constants.ts

  • Subject: invocation
  • Concern: constants
  • Layer: infrastructure

Stats

Files 1

Lines of code 9

Blank lines 8

Bytes 325

Definitions 9

Exported 9

Callable 0

Call edges 0

isolated flow 9

Findings no anomalies

FLAG_PREFIX:1 isolated · in 0 · out 0 calls: none called by: none

HELP_FLAG:3 isolated · in 0 · out 0 calls: none called by: none

HELP_FLAGS:5 isolated · in 0 · out 0 calls: none called by: none

NAME_WIDTH:7 isolated · in 0 · out 0 calls: none called by: none

ARGV_OFFSET:9 isolated · in 0 · out 0 calls: none called by: none

SCRIPT_AT:11 isolated · in 0 · out 0 calls: none called by: none

EXIT_CLEAN:13 isolated · in 0 · out 0 calls: none called by: none

EXIT_REFUSED:15 isolated · in 0 · out 0 calls: none called by: none

DECIMAL:17 isolated · in 0 · out 0 calls: none called by: none

the file's walk 31 steps

Syntax kinds

identifier 11

export_statement 9

lexical_declaration 9

variable_declarator 9

number 6

string 3

string_fragment 3

program 1

Once only

program 1

type_annotation 1

generic_type 1

type_identifier 1

type_arguments 1

predefined_type 1

The source is served as text at the source

root configuration

strings

A concern on the product layer holding 1 file, 30 lines of code, 13 definitions and 0 call edges.

Stats

Files 1

Lines of code 30

Blank lines 12

Bytes 1561

Definitions 13

Exported 13

Callable 6

Call edges 0

isolated flow 7

leaf flow 6

Findings no anomalies

Files

invocation.strings.ts

  • Subject: invocation
  • Concern: strings
  • Layer: product
  • 30 lines of code
  • 13 definitions
  • 0 call edges

root configuration strings

invocation.strings.ts

  • Subject: invocation
  • Concern: strings
  • Layer: product

Stats

Files 1

Lines of code 30

Blank lines 12

Bytes 1561

Definitions 13

Exported 13

Callable 6

Call edges 0

isolated flow 7

leaf flow 6

Findings no anomalies

refusedLine:16 leaf · in 1 · out 0 calls: none called by: resolveArgv

undeclaredFlag:20 leaf · in 1 · out 0 calls: none called by: takeFlag

repeatedFlag:24 leaf · in 1 · out 0 calls: none called by: takeFlag

missingValue:28 leaf · in 1 · out 0 calls: none called by: takeFlag

tooManyPositionals:32 leaf · in 1 · out 0 calls: none called by: arityRefusal

tooFewPositionals:40 leaf · in 1 · out 0 calls: none called by: arityRefusal

REST_NOTE:1 isolated · in 0 · out 0 calls: none called by: none

REPEATABLE_NOTE:3 isolated · in 0 · out 0 calls: none called by: none

FLAGS_SLOT:5 isolated · in 0 · out 0 calls: none called by: none

VALUE_SLOT:7 isolated · in 0 · out 0 calls: none called by: none

HELP_ROW:9 isolated · in 0 · out 0 calls: none called by: none

CLOSING:11 isolated · in 0 · out 0 calls: none called by: none

HELP_UNANSWERED:14 isolated · in 0 · out 0 calls: none called by: none

the file's walk 100 steps

Syntax kinds

identifier 45

string_fragment 17

type_annotation 17

predefined_type 17

export_statement 13

lexical_declaration 13

variable_declarator 13

required_parameter 11

Once only

program 1

readonly_type 1

array_type 1

member_expression 1

property_identifier 1

The source is served as text at the source

root

core

A container holding 5 files, 180 lines of code, 39 definitions and 20 call edges.

Stats

Files 5

Lines of code 180

Blank lines 19

Bytes 7912

Definitions 39

Exported 23

Callable 18

Call edges 20

isolated flow 29

leaf flow 4

entry flow 3

relay flow 3

Findings no anomalies

Folders

converters

A concern on the processing layer holding 1 file, 83 lines of code, 17 definitions and 15 call edges.

formatters

A concern on the processing layer holding 1 file, 38 lines of code, 10 definitions and 4 call edges.

predicates

A concern on the infrastructure layer holding 1 file, 11 lines of code, 2 definitions and 0 call edges.

resolvers

A concern on the infrastructure layer holding 1 file, 33 lines of code, 5 definitions and 1 call edge.

selectors

A concern on the application layer holding 1 file, 15 lines of code, 5 definitions and 0 call edges.

root core

converters

A concern on the processing layer holding 1 file, 83 lines of code, 17 definitions and 15 call edges.

Stats

Files 1

Lines of code 83

Blank lines 8

Bytes 3674

Definitions 17

Exported 4

Callable 7

Call edges 15

isolated flow 10

leaf flow 3

entry flow 2

relay flow 2

Findings no anomalies

Files

invocation.converter.ts

  • Subject: invocation
  • Concern: converter
  • Layer: processing
  • 83 lines of code
  • 17 definitions
  • 15 call edges

root core converters

invocation.converter.ts

  • Subject: invocation
  • Concern: converter
  • Layer: processing

Stats

Files 1

Lines of code 83

Blank lines 8

Bytes 3674

Definitions 17

Exported 4

Callable 7

Call edges 15

isolated flow 10

leaf flow 3

entry flow 2

relay flow 2

Findings no anomalies

refused:21 leaf · in 3 · out 0 calls: none called by: takeFlag, takeFlag, takeFlag

withFlag:25 leaf · in 2 · out 0 calls: none called by: takeFlag, takeFlag

takeFlag:30 relay · in 1 · out 8 calls: missingValue, repeatedFlag, undeclaredFlag, refused, refused, refused, withFlag, withFlag called by: takeWord

takeWord:52 relay · in 1 · out 2 calls: restBegins, takeFlag called by: parseArgv

restBegins:47 leaf · in 1 · out 0 calls: none called by: takeWord

parseArgv:76 entry · in 0 · out 3 calls: takeWord, usageOf, usageOf called by: none

arityRefusal:65 entry · in 0 · out 2 calls: tooFewPositionals, tooManyPositionals called by: none

Scan:12 isolated · in 0 · out 0 calls: none called by: none

seen:26 isolated · in 0 · out 0 calls: none called by: none

flag:31 isolated · in 0 · out 0 calls: none called by: none

declared:66 isolated · in 0 · out 0 calls: none called by: none

variadic:67 isolated · in 0 · out 0 calls: none called by: none

given:68 isolated · in 0 · out 0 calls: none called by: none

required:72 isolated · in 0 · out 0 calls: none called by: none

scan:77 isolated · in 0 · out 0 calls: none called by: none

at:78 isolated · in 0 · out 0 calls: none called by: none

reason:86 isolated · in 0 · out 0 calls: none called by: none

the file's walk 395 steps

Syntax kinds

identifier 166

property_identifier 74

member_expression 44

type_annotation 34

binary_expression 28

arguments 27

call_expression 25

pair 24

Once only

program 1

interface_declaration 1

interface_body 1

generic_type 1

type_arguments 1

ternary_expression 1

The source is served as text at the source

root core

formatters

A concern on the processing layer holding 1 file, 38 lines of code, 10 definitions and 4 call edges.

Stats

Files 1

Lines of code 38

Blank lines 3

Bytes 1652

Definitions 10

Exported 7

Callable 3

Call edges 4

isolated flow 8

leaf flow 1

relay flow 1

Findings no anomalies

Files

invocation.formatter.ts

  • Subject: invocation
  • Concern: formatter
  • Layer: processing
  • 38 lines of code
  • 10 definitions
  • 4 call edges

root core formatters

invocation.formatter.ts

  • Subject: invocation
  • Concern: formatter
  • Layer: processing

Stats

Files 1

Lines of code 38

Blank lines 3

Bytes 1652

Definitions 10

Exported 7

Callable 3

Call edges 4

isolated flow 8

leaf flow 1

relay flow 1

Findings no anomalies

row:17 leaf · in 4 · out 0 calls: none called by: usageOf, usageOf, usageOf, usageOf

usageOf:21 relay · in 2 · out 4 calls: row, row, row, row called by: parseArgv, parseArgv

positionalShape:12 isolated · in 0 · out 0 calls: none called by: none

name:13 isolated · in 0 · out 0 calls: none called by: none

positionals:22 isolated · in 0 · out 0 calls: none called by: none

shape:23 isolated · in 0 · out 0 calls: none called by: none

restName:24 isolated · in 0 · out 0 calls: none called by: none

head:25 isolated · in 0 · out 0 calls: none called by: none

lines:28 isolated · in 0 · out 0 calls: none called by: none

spelled:36 isolated · in 0 · out 0 calls: none called by: none

the file's walk 180 steps

Syntax kinds

identifier 80

member_expression 33

property_identifier 33

string_fragment 15

call_expression 14

arguments 14

string 12

import_specifier 10

Once only

program 1

export_statement 1

arrow_function 1

number 1

if_statement 1

The source is served as text at the source

root core

predicates

A concern on the infrastructure layer holding 1 file, 11 lines of code, 2 definitions and 0 call edges.

Stats

Files 1

Lines of code 11

Blank lines 1

Bytes 447

Definitions 2

Exported 2

Callable 1

Call edges 0

isolated flow 2

Findings no anomalies

Files

invocation.predicate.ts

  • Subject: invocation
  • Concern: predicate
  • Layer: infrastructure
  • 11 lines of code
  • 2 definitions
  • 0 call edges

root core predicates

invocation.predicate.ts

  • Subject: invocation
  • Concern: predicate
  • Layer: infrastructure

Stats

Files 1

Lines of code 11

Blank lines 1

Bytes 447

Definitions 2

Exported 2

Callable 1

Call edges 0

isolated flow 2

Findings no anomalies

isMainModule:6 isolated · in 0 · out 0 calls: none called by: none

script:7 isolated · in 0 · out 0 calls: none called by: none

the file's walk 34 steps

Syntax kinds

identifier 16

import_statement 4

import_clause 4

string 4

string_fragment 4

call_expression 4

arguments 4

named_imports 3

Once only

program 1

export_statement 1

function_expression 1

formal_parameters 1

required_parameter 1

if_statement 1

The source is served as text at the source

root core

resolvers

A concern on the infrastructure layer holding 1 file, 33 lines of code, 5 definitions and 1 call edge.

Stats

Files 1

Lines of code 33

Blank lines 3

Bytes 1366

Definitions 5

Exported 5

Callable 3

Call edges 1

isolated flow 4

entry flow 1

Findings no anomalies

Files

invocation.resolver.ts

  • Subject: invocation
  • Concern: resolver
  • Layer: infrastructure
  • 33 lines of code
  • 5 definitions
  • 1 call edges

root core resolvers

invocation.resolver.ts

  • Subject: invocation
  • Concern: resolver
  • Layer: infrastructure

Stats

Files 1

Lines of code 33

Blank lines 3

Bytes 1366

Definitions 5

Exported 5

Callable 3

Call edges 1

isolated flow 4

entry flow 1

Findings no anomalies

resolveArgv:25 entry · in 0 · out 1 calls: refusedLine called by: none

ArgvRefusedError:7 isolated · in 0 · out 0 calls: none called by: none

constructor:8 isolated · in 0 · out 0 calls: none called by: none

argvOf:14 isolated · in 0 · out 0 calls: none called by: none

outcome:26 isolated · in 0 · out 0 calls: none called by: none

the file's walk 120 steps

Syntax kinds

identifier 50

property_identifier 20

member_expression 19

arguments 11

string 10

string_fragment 10

call_expression 9

import_specifier 8

Once only

program 1

class_declaration 1

class_heritage 1

extends_clause 1

class_body 1

method_definition 1

The source is served as text at the source

root core

selectors

A concern on the application layer holding 1 file, 15 lines of code, 5 definitions and 0 call edges.

Stats

Files 1

Lines of code 15

Blank lines 4

Bytes 773

Definitions 5

Exported 5

Callable 4

Call edges 0

isolated flow 5

Findings no anomalies

Files

invocation.selector.ts

  • Subject: invocation
  • Concern: selector
  • Layer: application
  • 15 lines of code
  • 5 definitions
  • 0 call edges

root core selectors

invocation.selector.ts

  • Subject: invocation
  • Concern: selector
  • Layer: application

Stats

Files 1

Lines of code 15

Blank lines 4

Bytes 773

Definitions 5

Exported 5

Callable 4

Call edges 0

isolated flow 5

Findings no anomalies

hasFlag:4 isolated · in 0 · out 0 calls: none called by: none

flagValues:8 isolated · in 0 · out 0 calls: none called by: none

flagValue:12 isolated · in 0 · out 0 calls: none called by: none

numberFlag:16 isolated · in 0 · out 0 calls: none called by: none

parsed:17 isolated · in 0 · out 0 calls: none called by: none

the file's walk 85 steps

Syntax kinds

identifier 35

type_annotation 13

required_parameter 9

predefined_type 9

member_expression 9

property_identifier 9

call_expression 7

arguments 7

Once only

program 1

readonly_type 1

array_type 1

array 1

union_type 1

literal_type 1

The source is served as text at the source

root

types

A container holding 1 file, 28 lines of code, 5 definitions and 0 call edges.

Stats

Files 1

Lines of code 28

Blank lines 4

Bytes 945

Definitions 5

Exported 5

Callable 0

Call edges 0

isolated flow 5

Findings no anomalies

Files

invocation.types.ts

  • Subject: invocation
  • Concern: types
  • Layer: infrastructure
  • 28 lines of code
  • 5 definitions
  • 0 call edges

root types

invocation.types.ts

  • Subject: invocation
  • Concern: types
  • Layer: infrastructure

Stats

Files 1

Lines of code 28

Blank lines 4

Bytes 945

Definitions 5

Exported 5

Callable 0

Call edges 0

isolated flow 5

Findings no anomalies

FlagSpec:1 isolated · in 0 · out 0 calls: none called by: none

PositionalSpec:8 isolated · in 0 · out 0 calls: none called by: none

ArgvSpec:15 isolated · in 0 · out 0 calls: none called by: none

ParsedArgv:23 isolated · in 0 · out 0 calls: none called by: none

ArgvOutcome:29 isolated · in 0 · out 0 calls: none called by: none

the file's walk 38 steps

Syntax kinds

property_signature 23

property_identifier 23

type_annotation 23

predefined_type 17

type_identifier 10

export_statement 5

readonly_type 5

array_type 5

Once only

program 1

generic_type 1

type_arguments 1

type_alias_declaration 1

The source is served as text at the source


GovLab Stats · Canonical Write

Clone this wiki locally