arg :aws_account desc 'Reviews Reserved Instances' command 'audit' do |c| c.switch [:e, :ec2], :desc => "Only audit EC2 instances" c.switch [:d, :rds], :desc => "Only audit RDS instances" c.switch [:c, :cache], :desc => "Only audit ElastiCache instances" c.switch [:r, :reserved], :desc => "Shows reserved instance counts" c.switch [:i, :instances], :desc => "Shows current instance counts" c.action do |global_options, options, args| require_relative '../scripts/audit' raise ArgumentError, 'You must specify an AWS account' unless args.first AwsAuditor::Scripts::Audit.execute(args.first,options) end end