Command Line Interface ====================== .. code-block:: text codebasin [-h] [--version] [-v] [-q] [-R ] [-x ] [-p ] [] **positional arguments:** ``analysis-file`` TOML file describing the analysis to be performed, including the codebase and platform descriptions. **options:** ``-h, --help`` Show help message and exit. ``--version`` Display version information and exit. ``-v, --verbose`` Increase verbosity level. ``-q, --quiet`` Decrease verbosity level. ``--debug`` Enable debug mode. ``-R `` Generate a report of the specified type. - ``summary``: code divergence information - ``clustering``: distance matrix and dendrogram - ``duplicates``: detected duplicate files ``-x , --exclude `` Exclude files matching this pattern from the code base. May be specified multiple times. ``-p , --platform `` Include the specified platform in the analysis. May be specified multiple times. If not specified, all platforms will be included. Tree Tool --------- The tree tool generates a visualization of the code base where each file and directory is annotated with information about platform usage and coverage. .. code-block:: text cbi-tree [-h] [--version] [-x ] [-p ] [--prune] [-L ] **positional arguments:** ``analysis-file`` TOML file describing the analysis to be performed, including the codebase and platform descriptions. **options:** ``-h, --help`` Display help message and exit. ``--version`` Display version information and exit. ``-x , --exclude `` Exclude files matching this pattern from the code base. May be specified multiple times. ``-p , --platform `` Include the specified platform in the analysis. May be specified multiple times. If not specified, all platforms will be included. ``--prune`` Prune unused files from the tree. ``-L , --levels `` Print only the specified number of levels. Coverage Tool ------------- The coverage tool reads a JSON compilation database and generates a JSON coverage file that is suitable to be read by other tools. .. code-block:: text cbi-cov compute [-h] [-S ] [-x ] [-o ] **positional arguments:** ``input path`` Path to compilation database JSON file. **options:** ``-h, --help`` Display help message and exit. ``-S , --source-dir `` Path to source directory. ``-x , --exclude `` Exclude files matching this pattern from the code base. May be specified multiple times. ``-o , --output `` Path to coverage JSON file. If not specified, defaults to 'coverage.json'.