parse args of cli