Fixed checking arguments after call to parse_options, it displays help
and returns nil if wrong option was passed or -h was given.
Merge pull request #128 from soltysh/parsing_args

Fixed checking arguments after call to parse_options, it displays help