lib/csd/options_parser.rb in csd-0.1.12 vs lib/csd/options_parser.rb in csd-0.1.13

- old
+ new

@@ -32,13 +32,13 @@ UI.debug "#{self.class} loads the scopes of #{Applications.current} now" self.scopes = Applications.current.scopes(self.action) end end - def clear + def clear(additional_options='') # Resetting all attributes to nil (because e.g. an application instance might have modified or added some). - super + super() # First we define all valid actions and scopes self.actions = [] self.scopes = [] # Then we define the default literals self.help = false @@ -51,9 +51,11 @@ self.verbose = false self.silent = false self.developer = false # Shortcut to allow for debugging the options parser itself self.debug = (ARGV.include?('--debug') or ARGV.include?('-d')) + # For our test suite we might want to inject more options here + eval additional_options end # Here we check for literals, i.e. "help", ACTION and APPLICATION. # def parse_literals