Class: Vaws::Aws::Describer

Inherits:
Object
  • Object
show all
Defined in:
lib/vaws/aws/describer.rb

Instance Method Summary collapse

Instance Method Details

#single_option_validation(*options) ⇒ Object

単一のオプションしか許可されていないコマンドのオプション数を確認



7
8
9
10
11
12
13
# File 'lib/vaws/aws/describer.rb', line 7

def single_option_validation(*options)
  options_count = options.length - options.count(nil)
  if options_count > 1
    puts "Can't specify more than one option"
    exit 1
  end
end