vocal_helper.cli module

vocal_helper.cli — backwards-compat shim.

The canonical argparse CLI lives in vocal_helper.cli_argparse so it can sit next to the click twin (vocal_helper.cli_click) with symmetric naming — and so both CLI surfaces share a single config builder without drift. This module keeps the old import path (from vocal_helper.cli import main) working so downstream code and tests continue to load.

The shipped vocal-helper entry point resolves to vocal_helper.cli_argparse.main() (see [project.scripts] in pyproject.toml); everything you can do here you can do there, plus the url and transcribe subcommands.

Usage Example

>>> from vocal_helper.cli import main
>>> # equivalent to :
>>> from vocal_helper.cli_argparse import main

Author

Warith HARCHAOUI — https://linkedin.com/in/warith-harchaoui

vocal_helper.cli.build_parser()[source]

Assemble the top-level vocal-helper argument parser.

Returns:

Fully wired parser with every subcommand attached.

Return type:

argparse.ArgumentParser

vocal_helper.cli.main(argv=None)[source]

Entry point invoked by vocal-helper (see [project.scripts]).

Parameters:

argv (sequence of str, optional) – Arguments to parse. Defaults to sys.argv[1:] when None.

Returns:

Process exit code (0 on success).

Return type:

int