marketflows.cli

Command-line interface for MarketFlows.

Parses CLI flags, configures logging, resolves paths, and runs the pipeline.

Functions

main([argv])

Run the MarketFlows CLI entrypoint.

marketflows.cli.main(argv=None)

Run the MarketFlows CLI entrypoint.

Parses command-line arguments, configures logging, resolves file paths, and invokes the main pipeline runner.

Parameters:

argv (Sequence[str] | None, default: None) – Optional argument vector (excluding the program name). If None, arguments are read from the process command line.

Return type:

int

Returns:

Exit code (0 on success).

Raises:

SystemExit – When invoked via the module entrypoint (see __main__ guard), argparse may call SystemExit on invalid CLI arguments.