cheshire.cli#

A skeleton of a command line interface to be deployed as an entry point script.

It takes two numbers and does something to them, printing out the result.

Module Contents#

Functions#

parse_command_line(→ argparse.Namespace)

Parse command line arguments. See the -h option for details.

main(→ int)

Demonstrate a really basic command line interface (CLI) that takes arguments.

Attributes#

cheshire.cli.logger[source]#
cheshire.cli.parse_command_line(argv: list[str]) argparse.Namespace[source]#

Parse command line arguments. See the -h option for details.

Parameters:

argv (str) – Command line arguments, including caller filename.

Returns:

Dictionary of command line arguments and their parsed values.

Return type:

dict

cheshire.cli.main() int[source]#

Demonstrate a really basic command line interface (CLI) that takes arguments.