Skip to content

Instantly share code, notes, and snippets.

@mkwiatkowski
Created July 6, 2012 09:00
Show Gist options
  • Save mkwiatkowski/3059072 to your computer and use it in GitHub Desktop.
Save mkwiatkowski/3059072 to your computer and use it in GitHub Desktop.
$ gem install dict
Fetching: dict-0.0.8.gem (100%)
Successfully installed dict-0.0.8
1 gem installed
Installing ri documentation for dict-0.0.8...
Building YARD (yri) index for dict-0.0.8...
Installing RDoc documentation for dict-0.0.8...
$ translate
Please enter the word. (-h for help)
$ translate -h
/home/mk/.rvm/gems/ruby-1.9.3-p0/gems/slop-2.4.4/lib/slop.rb:873:in `check_optional_argument!': 'h' expects an argument, none given (Slop::MissingArgumentError)
from /home/mk/.rvm/gems/ruby-1.9.3-p0/gems/slop-2.4.4/lib/slop.rb:852:in `block in parse_items'
from /home/mk/.rvm/gems/ruby-1.9.3-p0/gems/slop-2.4.4/lib/slop.rb:812:in `each'
from /home/mk/.rvm/gems/ruby-1.9.3-p0/gems/slop-2.4.4/lib/slop.rb:812:in `each_with_index'
from /home/mk/.rvm/gems/ruby-1.9.3-p0/gems/slop-2.4.4/lib/slop.rb:812:in `parse_items'
from /home/mk/.rvm/gems/ruby-1.9.3-p0/gems/slop-2.4.4/lib/slop.rb:484:in `parse'
from /home/mk/.rvm/gems/ruby-1.9.3-p0/gems/slop-2.4.4/lib/slop.rb:786:in `initialize_and_parse'
from /home/mk/.rvm/gems/ruby-1.9.3-p0/gems/slop-2.4.4/lib/slop.rb:295:in `parse'
from /home/mk/.rvm/gems/ruby-1.9.3-p0/gems/dict-0.0.8/bin/translate:9:in `<top (required)>'
from /home/mk/.rvm/gems/ruby-1.9.3-p0/bin/translate:19:in `load'
from /home/mk/.rvm/gems/ruby-1.9.3-p0/bin/translate:19:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment