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 the command-line arguments for the Populse Mia application. |
|
|
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:
- Raises:
argparse.ArgumentTypeError – If the integer is less than 1.
ValueError – If value cannot be converted to an integer.