parseCommonArgs as an util
Unified args parsing and marked private methods with underscore