task-6329: move OptionParser creation to its own function
task-6329: move OptionParser creation to its own function

sysrqb/metrics-tasks,gsathya/metrics-tasks,sysrqb/metrics-tasks,gsathya/metrics-tasks,sysrqb/metrics-tasks,sysrqb/metrics-tasks,gsathya/metrics-tasks,sysrqb/metrics-tasks,gsathya/metrics-tasks,sysrqb/metrics-tasks,gsathya/metrics-tasks,gsathya/metrics-tasks