Parse argument for data firectory.