Raise exception Bad_option for unparseable or invalid options.

Fix for issue #56.