Fixed checking arguments after call to parse_options, it displays help

and returns nil if wrong option was passed or -h was given.