Parse arg refactoring #4124

Fixed compile error on Linux