lib/redis-stat/option.rb in redis-stat-0.2.0 vs lib/redis-stat/option.rb in redis-stat-0.2.1

- old
+ new

@@ -15,9 +15,13 @@ options = DEFAULT.dup opts = ::OptionParser.new { |opts| opts.banner = "usage: redis-stat [HOST[:PORT] ...] [INTERVAL [COUNT]]" opts.separator '' + opts.on('--auth=PASSWORD', 'Password') do |v| + options[:auth] = v + end + opts.on('--csv=OUTPUT_CSV_FILE_PATH', 'Save the result in CSV format') do |v| options[:csv] = v end opts.on('-v', '--verbose', 'Show more info') do |v|