lib/cl/runner/default.rb in cl-1.1.3 vs lib/cl/runner/default.rb in cl-1.1.4
- old
+ new
@@ -68,10 +68,10 @@
keys[0] << [Cmd[keys[1].join(':')], keys[1].dup] if Cmd.registered?(keys[1].join(':'))
keys
end
cmd, keys = keys[0].last
- raise UnknownCmd.new(self, args) unless cmd
+ raise UnknownCmd.new(self, args) if cmd.nil? || cmd.abstract?
keys.each { |key| args.delete_at(args.index(key)) }
[cmd, args]
end
def providers