Sha256: 18d5c66d3f70f9b5534d71d7fa50502ac4f26fe0a57395c494b800fd89040ab7

Contents?: true

Size: 655 Bytes

Versions: 3

Compression:

Stored size: 655 Bytes

Contents

#! /usr/bin/env ruby
# coding: utf-8
#
# USAGE: formcolumn [options] files ...


require "pp"
require "optparse"
require "rubygems"
require "tefil"

# option analysis
OPTIONS = {:separator => ' '}
op = OptionParser.new
op.banner = [
  "Usage: #{File.basename("#{__FILE__}")} [options] [files]",
].join("\n")
op.on("-o"     , "--overwrite"     , "Overwrite."){    OPTIONS[:overwrite] = true}
op.on("-s char", "--separator=char", "Indicate separator."){|val| OPTIONS[:separator] = val}
op.on("-l"     , "--left-alline"   , "Left alline."){ OPTIONS[:left] = true}
op.parse!(ARGV)

OPTIONS[:overwrite] ||= false

Tefil::ColumnFormer.new(OPTIONS).filter(ARGV)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tefil-0.1.3 bin/columnform
tefil-0.1.2 bin/columnform
tefil-0.1.1 bin/columnform