Sha256: e9ed8cbca8ce3edff9e30991578365e8e7fc3f99c23118bb71165c4f27e507b1

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

#!/usr/bin/env ruby

require 'optparse'
require 'xclocalize'

OptionParser.new do |opts|
  opts.banner = "Usage: xclocalize [options]"

  opts.on_tail('-h', '--help', 'Show this message') { puts opts; exit }
  opts.on_tail("-v", "--version", "Show version") { puts XCLocalize::VERSION; exit }
  opts.parse!

  if STDIN.tty?
    puts opts.help
    exit 1
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xclocalize-0.0.3 bin/xclocalize