Extract parsing args as a function
Use C++

I want to use reference in args of parseArgs()