Method: Util.getJSONArgs

Defined in:
lib/cloudmunch_Ruby_sdk_v2/Util.rb

.getJSONArgsObject



64
65
66
67
68
69
70
71
72
# File 'lib/cloudmunch_Ruby_sdk_v2/Util.rb', line 64

def Util.getJSONArgs()
   jsonin = nil
   loop { case ARGV[0]
       when '-jsoninput' then  ARGV.shift; jsonin = ARGV.shift
       when /^-/ then  usage("Unknown option: #{ARGV[0].inspect}")
       else break
   end; }
   return JSON.load(jsonin); 
end