summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormakoto kuwata <kwa@kuwata-lab.com>2009-02-07 08:24:36 +0000
committermakoto kuwata <kwa@kuwata-lab.com>2009-02-07 08:24:36 +0000
commit694d19941e8e52f290f3cb5e6c2afbffba796d5c (patch)
treeb1ada86a7290eb80d68400e1e4337624e2475418 /lib
parentacfea9521349f0b7c22a1032e7afd9e45961701a (diff)
downloaderubis-694d19941e8e52f290f3cb5e6c2afbffba796d5c.tar.gz
- [change] change '#!/usr/bin/ruby' to '#!/usr/bin/env ruby' in 'bin/erubis'
- [bugfix] change 'optchar.chr' to 'optchar' in 'main.rb'.
Diffstat (limited to 'lib')
-rw-r--r--lib/erubis/main.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/erubis/main.rb b/lib/erubis/main.rb
index 22cdfbd..58084d8 100644
--- a/lib/erubis/main.rb
+++ b/lib/erubis/main.rb
@@ -326,7 +326,7 @@ module Erubis
elsif arg_required.include?(optchar)
arg = optstr.empty? ? argv.shift : optstr
unless arg
- mesg = "-#{optchar.chr}: #{@option_args[optchar]} required."
+ mesg = "-#{optchar}: #{@option_args[optchar]} required."
raise CommandOptionError.new(mesg)
end
options[optchar] = arg
@@ -336,7 +336,7 @@ module Erubis
options[optchar] = arg
optstr = nil
else
- raise CommandOptionError.new("-#{optchar.chr}: unknown option.")
+ raise CommandOptionError.new("-#{optchar}: unknown option.")
end
end
end
@@ -399,7 +399,7 @@ module Erubis
enhancers << Erubis.const_get("#{shortname}Enhancer")
end
rescue NameError
- raise CommandOptionError.new("#{shortname}: no such Enhancer (try '-E' to show all enhancers).")
+ raise CommandOptionError.new("#{shortname}: no such Enhancer (try '-h' to show all enhancers).")
end
return enhancers
end