Sha256: 134581672c80b1e62faa5b3049eb02a8320d6cf8348ac1d2ce539124e4af102a
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
#! /usr/bin/env ruby # coding: utf-8 require "pp" require "optparse" require "rubygems" require "tefil" # option analysis options = {} op = OptionParser.new #op.banner = [ # "Usage: #{File.basename("#{__FILE__}")} [options] [files]", #].join("\n") op.on("-o" , "--overwrite" , "Overwrite."){ options[:overwrite] = true} op.on("-m", "--minimum", "Show minimum width (not zero). If no indent, show '0'."){ options[:minimum] = true} op.parse!(ARGV) options[:overwrite] ||= false is = Tefil::IndentStatistics.new options is.filter(ARGV)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tefil-0.1.0 | bin/indentstat |