Sha256: ea971a227579266198271e37196e87b5c1707942523c7a46c6d8ed555bb3d9be
Contents?: true
Size: 822 Bytes
Versions: 3
Compression:
Stored size: 822 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH << 'lib' require 'optparse' require 'ftl' options = {} optparse = OptionParser.new do |opts| opts.on('-h', '--help', "Display this message") do Ftl.help exit end # opts.on('-s', '--sample-config', "Displays sample ftl.yml config file") do |opts| # Ftl.sample_config # end opts.on('-n', '--count COUNT', "Set count for spot requests") do |count| p count options[:count] = count end opts.on('-d', '--headers FILE', Array, "provide custom headers") do |headers| options[:headers] = headers end opts.on('-c', '--config FILE', "provide custom config file") do |file| options[:config] = file end opts.on('-v', '--version', "display version info") do puts Ftl::VERSION exit end end optparse.parse! Ftl::Client.new(ARGV, options)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ftl-0.3.3 | bin/ftl |
ftl-0.3.2 | bin/ftl |
ftl-0.3.1 | bin/ftl |