Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix around help message #16

Open
wants to merge 1 commit into from

2 participants

@kitak

An error occured when exec rake task.
This is message then.

mkdir ./bin
mkdir ./.tmp/
cp ./src/dict ./.tmp/dict.rb
/usr/local/bin/macrubyc -o ./bin/dict ./.tmp/dict.rb
./.tmp/dict.rb:34: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n'
./.tmp/dict.rb:41: syntax error, unexpected keyword_else, expecting keyword_end
./.tmp/dict.rb:45: syntax error, unexpected keyword_end, expecting $end
Error when executing ` arch -x86_64 /Library/Frameworks/MacRuby.framework/Versions/0.12/usr/bin/macruby  --emit-llvm "/var/folders/4r/jjx2r3gd0yl5ppyygxm773rr0000gn/T/dictx86_64-1585.bc" MREP_FF581DB8BD2C407D81D517B649FDE084 "./.tmp/dict.rb"'
rake aborted!
Command failed with status (1): [/usr/local/bin/macrubyc -o ./bin/dict ./.t...]
/Users/kitak/tools-osx/Rakefile:27:in `block in <top (required)>'
Tasks: TOP => default
(See full trace by running task with --trace)
@morgant
Owner

My apologies for neglecting this project for some time. I'll be reviewing this pull request in the near future as I prepare a new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 24, 2013
  1. @kitak

    fix around help message

    kitak authored
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 10 deletions.
  1. +8 −10 src/dict
View
18 src/dict
@@ -29,16 +29,14 @@ if ARGV.empty?
else
ARGV.each do |word|
# handle options
- if word =~ /^-/
- word = case
- when '-h':
- puts <<-EOF
- Usage: #{File.basename $0} [options] word ...
- -v verbose output
- -h print these usage instructions
- EOF
- end
- else
+ case word
+ when '-h' then
+ puts <<-EOF
+ Usage: #{File.basename $0} [options] word ...
+ -v verbose output
+ -h print these usage instructions
+ EOF
+ else
definition word
end
end
Something went wrong with that request. Please try again.