Consolidated arg_parser code