Refactored rest_runner arg parsing