populse_mia.cli_args

This module provides command-line argument parsing for the Mia application.

It centralizes the definition and parsing of CLI arguments to avoid duplication and ensure consistency across entry points.

Functions

parse_args()

Parse the command-line arguments for the Populse Mia application.

positive_int(value)

Convert a string to a strictly positive integer.

populse_mia.cli_args.positive_int(value: str) int[source]

Convert a string to a strictly positive integer.

Parameters:

value (str) – String representation of an integer.

Returns:

The converted integer.

Return type:

int

Raises:
  • argparse.ArgumentTypeError – If the integer is less than 1.

  • ValueError – If value cannot be converted to an integer.

populse_mia.cli_args.parse_args()[source]

Parse the command-line arguments for the Populse Mia application.

Returns:

The parsed command-line arguments.

Return type:

argparse.Namespace