Commits

Richo Healey  committed 32f0ce9

Fall over if we don't know that option

  • Participants
  • Parent commits db56cf8

Comments (0)

Files changed (1)

File lib/twat/argparse.rb

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