lib/mothership.rb in mothership-0.1.0 vs lib/mothership.rb in mothership-0.1.1

- old
+ new

@@ -27,10 +27,13 @@ global_parser = Parser.new(@@global) name, *argv = global_parser.parse_flags(argv, @@commands) app = new - return app.default_action unless name + unless name + app.input = Inputs.new(@@global, app, global_parser.given) + return app.default_action + end cmdname = name.gsub("-", "_").to_sym cmd = @@commands[cmdname] return app.unknown_command(cmdname) unless cmd