[DT] Added to parse the same optional config argument that format uses.

Added tests, updated the API docs, user guide and example.