Sha256: 72d8e7bde165eca3df406ae24c4a5f8bbd8c06657378ef8d2a49c5d98c87e39e
Contents?: true
Size: 347 Bytes
Versions: 53
Compression:
Stored size: 347 Bytes
Contents
require 'main' ARGV.replace %w( foo=40 foo=2 bar=false ) if ARGV.empty? Main { keyword('foo'){ required # by default keywords are not required arity 2 cast :float } keyword('bar'){ cast :bool } def run p params['foo'].given? p params['foo'].values p params['bar'].given? p params['bar'].value end }
Version data entries
53 entries across 52 versions & 3 rubygems