Skip to content

cli ¤

Module that contains the command line application.

Functions:

  • get_parser

    Return the CLI argument parser.

  • main

    Run the main program.

get_parser ¤

get_parser() -> ArgumentParser

Return the CLI argument parser.

Returns:

main ¤

main(args: list[str] | None = None) -> int

Run the main program.

This function is executed when you type griffe2md or python -m griffe2md.

Parameters:

  • args (list[str] | None, default: None ) –

    Arguments passed from the command line.

Returns:

  • int

    An exit code.