adds support for the -arg=val syntax in scan_args