class ModuleSync::CLI::Thor

Workaround some, still unfixed, Thor behaviors

This class extends ::Thor class to

Public Class Methods

exit_on_failure?() click to toggle source
# File lib/modulesync/cli/thor.rb, line 31
def self.exit_on_failure?
  true
end
start(*args) click to toggle source
Calls superclass method
# File lib/modulesync/cli/thor.rb, line 13
def self.start(*args)
  if (Thor::HELP_MAPPINGS & ARGV).any? && subcommands.none? { |command| command.start_with?(ARGV[0]) }
    Thor::HELP_MAPPINGS.each do |cmd|
      if (match = ARGV.delete(cmd))
        ARGV.unshift match
      end
    end
  end
  super
end

Public Instance Methods

_invalid_command_call() click to toggle source
# File lib/modulesync/cli/thor.rb, line 25
def _invalid_command_call
  self.class.new.help
  exit 1
end