Skip to content

cli_example_script ¤

Example script using argparse CLI.

Functions:

  • echo

    Prints the provided text to the console.

  • get_parser

    Creates and returns the argument parser.

  • main

    Main entry point for the script.

echo ¤

echo(text: str) -> None

Prints the provided text to the console.

get_parser ¤

get_parser() -> ArgumentParser

Creates and returns the argument parser.

main ¤

main(argv: Sequence[str] | None = None) -> None

Main entry point for the script.