actio_python_utils.argparse_functions.key_value_pair¶
- actio_python_utils.argparse_functions.key_value_pair(arg, sep='=')[source]¶
Splits a string once on sep and returns the result
- Parameters:
arg (
str) – The string to split onsep (
str, default:'=') – The separator to split the string on
- Raises:
ValueError – If
sepdoes not occur inarg- Return type:
tuple[str,str]- Returns:
The string split on
seponce