mac: a value passed to a commandline flag expecting a MAC address.
Returns:
- The MAC address passed or raises ArgumentTypeError on error.
+ The MAC address passed
Raises:
ArgumentTypeError: parse error (e.g. not a valid MAC address)
txt: data passed to a commandline flag expecting a date.
Returns:
- the datetime.date described by txt or raises ArgumentTypeError on error.
+ the datetime.date described by txt
Raises:
ArgumentTypeError: parse error (e.g. date not valid)
txt: data passed to a commandline flag expecting a valid datetime.datetime.
Returns:
- The datetime.datetime described by txt or raises ArgumentTypeError on error.
+ The datetime.datetime described by txt
Raises:
ArgumentTypeError: parse error (e.g. invalid datetime string)
txt: data passed to a commandline arg expecting a duration.
Returns:
- The datetime.timedelta described by txt or raises ArgumentTypeError
+ The datetime.timedelta described by txt
on error.
Raises:
txt: data passed to a commandline arg expecting a duration.
Returns:
- An integer number of bytes or raises ArgumentTypeError on
- error.
+ An integer number of bytes.
Raises:
ArgumentTypeError: parse error (e.g. byte count not parsable)
in_str: the string to convert
Returns:
- The integral value of the string or raises on error.
+ The integral value of the string.
Raises:
TypeError: the input argument isn't a string