Commits

Richo Healey committed 32f0ce9

Fall over if we don't know that option

Comments (0)

Files changed (1)

lib/twat/argparse.rb

     end
 
     def options
-      @configthingfucken ||= getopts
+      begin
+        @configthingfucken ||= getopts
+      rescue OptionParser::InvalidOption
+        usage "Unknown option"
+      end
     end
 
   end