command line args parsing for add