Fixed bug in vector functions and check-arguments function.
Added support for “—“ option.