lib/pronto/cli.rb in pronto-0.1.7 vs lib/pronto/cli.rb in pronto-0.2.0
- old
+ new
@@ -3,12 +3,19 @@
module Pronto
class CLI < Thor
require 'pronto'
require 'pronto/version'
- desc 'exec', 'Run Pronto'
+ class << self
+ def is_thor_reserved_word?(word, type)
+ return false if word == 'run'
+ super
+ end
+ end
+ desc 'run', 'Run Pronto'
+
method_option :commit,
type: :string,
default: 'master',
aliases: '-c',
banner: 'Commit for the diff'
@@ -23,10 +30,10 @@
type: :string,
default: 'text',
aliases: '-f',
banner: "Pick output formatter. Available: #{::Pronto::Formatter.names.join(', ')}"
- def exec
+ def run
gem_names = options[:runner].any? ? options[:runner] : ::Pronto.gem_names
gem_names.each do |gem_name|
require "pronto/#{gem_name}"
end