Sha256: 18b8b13b8215129b990dca4c3ea5a225874b55da14c33f032f391b137e5baf88
Contents?: true
Size: 717 Bytes
Versions: 1
Compression:
Stored size: 717 Bytes
Contents
#!/usr/bin/env ruby require "style_stats" require 'optparse' options = {} opt = OptionParser.new opt.banner = 'Usage: style_stats [options] <file ...>' opt.on('-h', '--help', 'output usage information') do puts opt exit end opt.on('-V', '--version', 'output the version number') do |v| puts StyleStats::VERSION exit end opt.on('-f', '--format <format>', 'set the output format <json|html|md>') { |v| options[:format] = v } opt.on('-m', '--mobile [name]', 'set the mobile user agent') { |v| options[:user_agent] = v || 'ios' } opt.on('--user-anget <string>', 'set the user agent') { |v| options[:user_agent] = v } opt.parse!(ARGV) if ARGV.empty? puts opt else StyleStats::CLI.run(ARGV, options) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
style_stats-0.1.0 | exe/style_stats |