lib/mothership.rb in mothership-0.0.12 vs lib/mothership.rb in mothership-0.0.13

- old
+ new

@@ -8,11 +8,11 @@ class Mothership # [Mothership::Command] global options @@global = Command.new(self, "(global options)") # [Mothershp::Inputs] inputs from global options - @@inputs = nil + @@inputs = Inputs.new(@@global) # [Fixnum] exit status; reassign as appropriate error code (e.g. 1) @@exit_status = 0 class << self @@ -25,11 +25,9 @@ # 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) - name, *argv = Parser.new(@@global).parse_flags( @@inputs.inputs, argv, @@commands)