Sha256: f4f5ffdbfa45c52d04f0f3d166ac03609e27cff5f033eed62f41a0132e6c24c2

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 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 }

  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.2 bin/xclocalize