Sha256: a121f42e67fac5d27e1016e8b851dd9c22f6fa272cf7798acafdb0d2d15de573

Contents?: true

Size: 540 Bytes

Versions: 1

Compression:

Stored size: 540 Bytes

Contents

#!/usr/bin/ruby

$LOAD_PATH.unshift File.expand_path("lib")
$LOAD_PATH.unshift File.expand_path("../lib")
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)

require "meme_generator/cli"

image, top, bottom = ARGV[0..2]
help = ARGV.include?("--help") || ARGV.include?("-h")
list = ARGV.include?("--list") || ARGV.include?("-l")
campfire = ARGV.include?("--campfire") || ARGV.include?("-c")

usage if help || ARGV.empty?
list_generators if list
setup_campfire if campfire

path = parse_path(image)
generate(path, top, bottom, campfire)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
memegen-1.0.0 bin/memegen