Bases: ArgumentParser
ArgumentParser
Safe version of ArgumentParser which doesn’t exit on error
Prints a usage message incorporating the message to stderr and exits.
If you override this in a subclass, it should not return – it should either exit or raise an exception.
Parse string variable into key-value tuple.
Returns (key, value) tuple from string with equals sign with the portion before the first equals sign as the key and the rest as the value.
s – string to parse
Returns: Tuple of key and value
Converts a list of key value pairs into a dictionary.
items – list like [‘a=1’, ‘b=2’, ‘c=3’]
Returns: dictionary like {‘a’: ‘1’, ‘b’: ‘2’, ‘c’: ‘3’}