lib/applix.rb in applix-0.3.8 vs lib/applix.rb in applix-0.4.2

- old
+ new

@@ -50,10 +50,15 @@ # see it as its first argument, (args.unshift name.to_s) if(name != :any && task[:name] == :any) # cluster for nesting or direct calling? if task[:cluster] - rc = Applix.main(args, options, &task[:code]) + #rc = Applix.main(args, options, &task[:code]) + cluster_task = args.first.to_sym + cluster_options = options.merge(options[cluster_task] || {}) + cluster_options.delete(cluster_task) + cluster_options.merge!(Hash.from_argv argv) + rc = Applix.main(args, cluster_options, &task[:code]) else rc = task[:code].call(*args, options) end # post handle