Class: MGit::CLI
- Inherits:
-
Object
- Object
- MGit::CLI
- Defined in:
- lib/mgit/cli.rb
Instance Method Summary collapse
Instance Method Details
#start ⇒ Object
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 |