Sha256: f5129da0199b650be76403e1faae8a2bc21c3b7500a2c1009e884bc01f56a621
Contents?: true
Size: 511 Bytes
Versions: 41
Compression:
Stored size: 511 Bytes
Contents
#!/usr/bin/env ruby require 'perus' require 'optparse' options_path = Perus::Pinger::DEFAULT_PINGER_OPTIONS_PATH OptionParser.new do |opts| opts.banner = "Usage: perus-pinger [options]" opts.on('-c', '--config PATH', "Path to config file (default: #{Perus::Pinger::DEFAULT_PINGER_OPTIONS_PATH})") do |c| options_path = c end opts.on('-h', '--help', 'Prints this help') do puts opts exit end end.parse! pinger = Perus::Pinger::Pinger.new(options_path) pinger.run
Version data entries
41 entries across 41 versions & 1 rubygems