build_tools.corpus_db_viewer.cli

Command-line interface for corpus database viewer.

Provides argument parsing and main entry point for the interactive TUI.

Functions

create_argument_parser()

Create and return the argument parser for corpus_db_viewer.

parse_arguments([args])

Parse command-line arguments.

main([args])

Main CLI entry point.

Module Contents

build_tools.corpus_db_viewer.cli.create_argument_parser()[source]

Create and return the argument parser for corpus_db_viewer.

Returns

argparse.ArgumentParser

Configured ArgumentParser ready to parse command-line arguments

build_tools.corpus_db_viewer.cli.parse_arguments(args=None)[source]

Parse command-line arguments.

Parameters

argslist[str] | None, optional

List of argument strings. If None, uses sys.argv[1:] (Supports testing)

Returns

argparse.Namespace

Parsed arguments

build_tools.corpus_db_viewer.cli.main(args=None)[source]

Main CLI entry point.

Parameters

argslist[str] | None, optional

List of argument strings. If None, uses sys.argv[1:]

Returns

int

Exit code (0 for success, 1 for error)