Class: MGit::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/mgit/cli.rb

Instance Method Summary collapse

Instance Method Details

#startObject



3
4
5
6
7
8
9
10
# File 'lib/mgit/cli.rb', line 3

def start
  raise NoCommandError if ARGV.size == 0
  command = Command.execute(ARGV.shift, ARGV)
rescue UsageError => e
  $stderr.puts e
rescue GitError => e
  $stderr.puts e
end