Sha256: 4a2dda772c544a4fd353d83fd289d19a0a2383da43e044e0730cf6c3c5375190

Contents?: true

Size: 551 Bytes

Versions: 5

Compression:

Stored size: 551 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

5 entries across 5 versions & 1 rubygems

Version Path
tefil-0.1.5 bin/indentstat
tefil-0.1.4 bin/indentstat
tefil-0.1.3 bin/indentstat
tefil-0.1.2 bin/indentstat
tefil-0.1.1 bin/indentstat