lib/eco/cli/config/default/options.rb in eco-helpers-2.3.2 vs lib/eco/cli/config/default/options.rb in eco-helpers-2.3.3
- old
+ new
@@ -66,9 +66,16 @@
desc += "It can also be useful to obtain `-get-partial` of people base on `:export` use cases (i.e. -people-to-csv)"
options_set.add("-entries-from", desc) do |options, session|
options.deep_merge!(input: {entries_from: true})
end
+ desc = "Used to specify the input file encoding"
+ options_set.add("-input-encoding", desc) do |options, session|
+ if encoding = SCR.get_arg("-input-encoding", with_param: true)
+ options.deep_merge!(input: {file: {encoding: encoding}})
+ end
+ end
+
desc = "Used to only get the people from the input file. It will also include their current and new supervisors."
options_set.add("-get-partial", desc) do |options, session|
options.deep_merge!(people: {
get: {from: :remote, type: :partial}
})