3.2. mktoc.cmdline

Command-line interface for Mktoc.

class mktoc.cmdline.CommandLine[source]

Bases: object

Command line runner class for executing Mktoc.

Interprets all program arguments and creates a CueParser object to generate a final TOC file.

run(argv=['build_sphinx'])[source]

Execution entry point.

mktoc.cmdline.main()[source]

Primary entry point for the mktoc command line application.

Creates a CommandLine object and catches any exceptions. Returns 0 to indicate success, or any other value for failure.