ASSETS.cli.config do |cnf| cnf.options_set do |options_set, options| options_set.add(["-dry-run", "-simulate"]) do |options| options[:dry_run] = true options[:simulate] = true end options[:end_get] = true options_set.add("-no-get") do |options| options[:end_get] = false end options_set.add("-search-strict") do |options| options.deep_merge!(search: {strict: true}) end options_set.add("-search-soft") do |options| options.deep_merge!(search: {strict: false}) end options_set.add(["-no-invites", "-exclude-invites"]) do |options| options.merge!(send_invites: false) end options_set.add("-send-invites") do |options| options.merge!(send_invites: true) end options_set.add("-exclude-core") do |options| options.deep_merge!(exclude: {core: true}) end options_set.add("-exclude-filter-tags") do |options| options.deep_merge!(exclude: {filter_tags: true}) end options_set.add("-exclude-external-id") do |options| options.deep_merge!(exclude: {external_id: true}) end options_set.add("-exclude-supervisor") do |options| options.deep_merge!(exclude: {supervisor: true}) end options_set.add("-exclude-email") do |options| options.deep_merge!(exclude: {email: true}) end options_set.add("-exclude-name") do |options| options.deep_merge!(exclude: {name: true}) end options_set.add("-exclude-details") do |options| options.deep_merge!(exclude: {details: true}) end options_set.add("-exclude-account") do |options| options.deep_merge!(exclude: {account: true}) end options_set.add("-exclude-policy-groups") do |options| options.deep_merge!(exclude: {policy_groups: true}) end options_set.add("-exclude-abilities") do |options| options.deep_merge!(exclude: {abilities: true}) end end end