class MGit::CLI

Public Instance Methods

start() click to toggle source
# File lib/mgit/cli.rb, line 5
def start
  fail NoCommandError if ARGV.size == 0

  MGit.init

  # Run command, consuming its name from the list of arguments.
  Command.execute(ARGV.shift, ARGV)
rescue UsageError => e
  perror e.to_s
rescue GitError => e
  perror e.to_s
end