Skip to content

Commit

Permalink
rescue cli
Browse files Browse the repository at this point in the history
  • Loading branch information
igrigorik committed Dec 24, 2010
1 parent f047951 commit d6e63b3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion bin/vimgolf
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,14 @@ $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)

require 'vimgolf/cli'

VimGolf::CLI.start
begin
VimGolf::CLI.start
rescue VimGolf::Error => e
VimGolf.ui.print_exception(e)
exit(1)
rescue Interrupt => e
puts
VimGolf.ui.print_exception(e)
VimGolf.ui.say("Quitting...")
exit(1)
end
2 changes: 1 addition & 1 deletion vimgolf.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.authors = ["Ilya Grigorik"]
s.email = ["ilya@igvita.com"]
s.homepage = "http://github.com/igrigorik/vimgolf"
s.summary = %q{TODO: CLI client for vimgolf.com}
s.summary = "CLI client for vimgolf.com"
s.description = s.summary

s.rubyforge_project = "vimgolf"
Expand Down

0 comments on commit d6e63b3

Please sign in to comment.