lib/aws_recon/options.rb in aws_recon-0.5.7 vs lib/aws_recon/options.rb in aws_recon-0.5.8
- old
+ new
@@ -98,20 +98,21 @@
args.config_file = config
end
# write output file to S3 bucket
opts.on('-b', '--s3-bucket [BUCKET:REGION]', 'Write output file to S3 bucket (default: \'\')') do |bucket_with_region|
+ args.stream_output = false
args.s3 = bucket_with_region
end
# output file
opts.on('-o', '--output [OUTPUT]', 'Specify output file (default: output.json)') do |output|
args.output_file = File.expand_path(File.join(Dir.pwd, output))
end
# output format
- opts.on('-f', '--format [FORMAT]', 'Specify output format (default: aws)') do |file|
- args.output_format = file.downcase if %w[aws custom].include?(file.downcase)
+ opts.on('-f', '--format [FORMAT]', 'Specify output format (default: aws)') do |f|
+ args.output_format = f.downcase if %w[aws custom].include?(f.downcase)
end
# threads
opts.on('-t', '--threads [THREADS]', "Specify max threads (default: #{Parser::DEFAULT_THREADS}, max: 128)") do |threads|
args.threads = threads.to_i if (0..Parser::MAX_THREADS).include?(threads.to_i)