lib/emot/cli.rb in emot-0.0.2 vs lib/emot/cli.rb in emot-0.0.3

- old
+ new

@@ -34,16 +34,18 @@ end end end desc "icons", "show all emoji icons" + option :inline, aliases:'-i', default:true, type: :boolean def icons - CLI.start(['show', '--only', 'emoji', '--inline', false]) + CLI.start(['show', '--only', 'emoji', '--inline', options[:inline].to_s]) end desc "names", "show all available names for emoji" + option :inline, aliases:'-i', default:false, type: :boolean def names - CLI.start(['show', '--only', 'nameonly']) + CLI.start(['show', '--only', 'nameonly', '--inline', options[:inline].to_s]) end no_tasks do def c(str, color=32) "\e[#{color}m#{str}\e[0m"