lib/eco/cli_default/options.rb in eco-helpers-3.0.14 vs lib/eco/cli_default/options.rb in eco-helpers-3.0.15

- old
+ new

@@ -151,9 +151,17 @@ options[:dry_run] = true options[:simulate] = true session.config.dry_run! end + desc = "Specifies the target API key space (i.e. uat, dev, etc.). " + desc << "Use with CAUTION !!!" + options_set.add('-space', desc) do |options, session| + next unless space = SCR.get_arg('-space', with_param: true) + + options.deep_merge!(api: {space: space.to_sym}) + end + desc = "It specifies the type of batch to be used (default: ':batch')" options_set.add("-batch-mode", desc) do |options, session| mode_in = SCR.get_arg("-batch-mode", with_param: true) mode_str = mode_in.to_s.downcase mode_sym = %i[batch job].find do |md|