Commits

Richo Healey committed 3510f94

More catches for silly userness

  • Participants
  • Parent commits 9590444

Comments (0)

Files changed (1)

File lib/twat/argparse.rb

     def options
       begin
         @configthingfucken ||= getopts
+      # FIXME, actually do something smart, not yell and barf
       rescue OptionParser::InvalidOption
         usage "Unknown option"
+      rescue OptionParser::MissingArgument
+        usage "Missing argument"
       end
     end