Add support for passing flags to node