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 on

  • sep (str, default: '=') – The separator to split the string on

Raises:

ValueError – If sep does not occur in arg

Return type:

tuple[str, str]

Returns:

The string split on sep once