lib/mothership.rb in mothership-0.0.2 vs lib/mothership.rb in mothership-0.0.3

- old
+ new

@@ -25,11 +25,11 @@ # arguments and flags # # arguments and flags can be in any order; all flags will be parsed out # first, and the bits left over will be treated as arguments def start(argv) - @@inputs = Inputs.new(@@global, self, {}) + @@inputs = Inputs.new(@@global) name, *argv = Parser.new(@@global).parse_flags( @@inputs.inputs, argv) @@ -54,10 +54,10 @@ @@exit_status = num end # get value of global option def option(name, *args) - @@inputs[name, *args] + @@inputs.get(name, self, *args) end # test if an option was explicitly provided def option_given?(name) @@inputs.given? name