Refactored webtag_parser.parse_args to allow testing