Sha256: 575db9f35fc53a917a7812a455c27dda64b8bf2c95228b6bff94563488c65ff1
Contents?: true
Size: 546 Bytes
Versions: 3
Compression:
Stored size: 546 Bytes
Contents
#!/usr/bin/env ruby require 'ruby_figlet' using RubyFiglet unless (ARGV & %w(help --help -h)).empty? puts <<HELP `list`: to see all fonts available. Type anything in citation marks to show it in ASCII art form. `-f`: and a font name to change the font `-h`, `--help` or `help`: to show this menu. HELP exit 0 end puts RubyFiglet::Figlet.available if ARGV[0] == 'list' exit 0 if ARGV[0] == 'list' font = 'standard' if ARGV.include? '-f' font = ARGV[ARGV.index('-f') + 1] ARGV.delete('-f') ARGV.delete(font) end puts ARGV[0].art font
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby_figlet-0.2.1 | bin/ruby-figlet |
ruby_figlet-0.2.0 | bin/ruby-figlet |
ruby_figlet-0.1.0 | bin/ruby-figlet |