created funcs to parse cmd line args into a struct, and generate cmd line args back from the struct