oct
Loading...
Searching...
No Matches
oct.complexity.__main__ Namespace Reference

Functions

argparse.ArgumentParser _parser ()
int main (Sequence[str]|None argv=None)

Detailed Description

Purpose
-------
Expose the complexity instrument through ``python -m oct.complexity``.

Responsibilities
----------------
- Parse module-command paths and output options.
- Run the shared measurement service for MAIN-tree probes.
- Return stable process exit codes for invalid options and missing inputs.

Diagnostics
-----------
Domain: OCT-COMPLEXITY
Levels:
    L2 - command lifecycle
    L3 - option and output details
    L4 - deep tracing

Contracts
---------
- Console output is ASCII and JSON mode writes no extra stdout text.
- The adapter measures and never gates.
- Human ``--top`` never truncates JSON data.

Dependencies
------------
- oct.complexity.service (analysis and rendering)
- oct.complexity.coverage (missing coverage.py error, reported as exit 2)

Function Documentation

◆ _parser()

argparse.ArgumentParser oct.complexity.__main__._parser ( )
protected
Build the module command's argument parser.

Definition at line 51 of file __main__.py.

Here is the caller graph for this function:

◆ main()

int oct.complexity.__main__.main ( Sequence[str] | None argv = None)
Run the module command and return its process exit code.

Definition at line 84 of file __main__.py.

Here is the call graph for this function:
Here is the caller graph for this function: