lib/applix.rb in applix-0.4.3 vs lib/applix.rb in applix-0.4.4
- old
+ new
@@ -51,10 +51,10 @@
(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])
- cluster_task = args.first.to_sym
+ cluster_task = task[:name].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