Sha256: 6241c4e459d4717a45403593caca94122461d50fdc428a8de23c289a73147c7b

Contents?: true

Size: 324 Bytes

Versions: 1

Compression:

Stored size: 324 Bytes

Contents

#!/usr/bin/env ruby
require 'pretty_qrcode'

if ARGV.length < 3
  puts "usage:\npretty_qrcode input.jpg output.jpg 'hello world data' [version] [correction_level]"
  exit
end

size = (ARGV[3] || 4).to_i
level = (ARGV[4] || :h).to_sym

pq = PrettyQrcode.new ARGV[2], ARGV[0], size: size, level: level
pq.make
pq.save ARGV[1]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pretty_qrcode-0.0.1 bin/pretty_qrcode