class Eco::API::UseCases::Default::People::Treat::SupersHierarchy class Cli < Eco::API::UseCases::Cli str = "Draws the Supervisors hiearchy in a file" desc str # callback do |_people, _session, options| # options.deep_merge!(output: {file: "supers_hierarchy.txt"}) unless options.dig(:output, :file) # end add_option("-to", "Specify the output file") do |options| file = SCR.get_file("-to", required: true, should_exist: false) options.deep_merge!(output: {file: file}) end end end