Merge "Refactor argument parsing to have global options and profiler subparser" into main