Module: Awshark::ClassOptions

Instance Method Summary collapse

Instance Method Details

#process_class_optionsObject



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/awshark/class_options.rb', line 5

def process_class_options
  command = current_command_chain.last
  cli_options = options.merge(parent_options || {}).symbolize_keys

  if cli_options[:help]
    respond_to?(command) ? help(command) : help
    exit(0)
  end

  setup_aws_credentials(cli_options)
end