added -M (--multi-line-ext) option