Refactor argument parsing into separate func

It makes pylint happy (and the code more readable, in this case).
4 jobs for plot-latency-linestyle in 15 seconds (queued for 10 seconds)