From 0c216c32dc9e5ce2554b516e821c4e94c2f05316 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 2 Apr 2010 04:40:34 +0000 Subject: * bin/erb: removed trailing spaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bin/erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/erb b/bin/erb index 6db3d0b6ed..6b92ac2284 100755 --- a/bin/erb +++ b/bin/erb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby # Tiny eRuby --- ERB2 -# Copyright (c) 1999-2000,2002 Masatoshi SEKI +# Copyright (c) 1999-2000,2002 Masatoshi SEKI # You can redistribute it and/or modify it under the same terms as Ruby. require 'erb' @@ -14,11 +14,11 @@ class ERB if arg =~ /^-(.)(.*)/ if $1 == '-' arg, @maybe_arg = arg.split(/=/, 2) - return arg + return arg end raise 'unknown switch "-"' if $2[0] == ?- and $1 != 'T' if $2.size > 0 - self.unshift "-#{$2}" + self.unshift "-#{$2}" @maybe_arg = $2 else @maybe_arg = nil @@ -29,7 +29,7 @@ class ERB nil end end - + def ARGV.req_arg (@maybe_arg || self.shift || raise('missing argument')).tap { @maybe_arg = nil @@ -77,7 +77,7 @@ class ERB when '-T' # trim mode arg = ARGV.req_arg if arg == '-' - trim_mode = arg + trim_mode = arg next end raise "invalid trim mode #{arg.dump}" unless arg =~ /^[0-2]$/ @@ -97,7 +97,7 @@ class ERB end rescue # usage STDERR.puts $!.to_s - STDERR.puts File.basename($0) + + STDERR.puts File.basename($0) + " [switches] [inputfile]" STDERR.puts <