Sha256: bc0c81be2281df84cc773f2448dbef4a46487a458f560aba3cb1b15b80107990
Contents?: true
Size: 602 Bytes
Versions: 6
Compression:
Stored size: 602 Bytes
Contents
#! /usr/bin/env ruby # coding: utf-8 # # USAGE: linesub [options] str0 str1 files ... require "pp" require "optparse" require "rubygems" #gem "tefil" require "tefil.rb" ## option analysis options = {} op = OptionParser.new op.banner = [ "Usage: #{File.basename("#{__FILE__}")} [options] [files]", " E.g., echo '%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB' | packpercent" #サンプル ].join("\n") op.on("-o" , "--overwrite" , "Overwrite."){ options[:overwrite] = true} op.parse!(ARGV) options[:overwrite] ||= false options[:overwrite] tf = Tefil::PercentPacker.new(options) tf.filter(ARGV)
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
tefil-0.1.5 | bin/percentpack |
tefil-0.1.4 | bin/percentpack |
tefil-0.1.3 | bin/percentpack |
tefil-0.1.2 | bin/percentpack |
tefil-0.1.1 | bin/percentpack |
tefil-0.1.0 | bin/percentpack |