remove -K option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5c759e6b1c
commit
56228b4da6
@ -1,3 +1,7 @@
|
|||||||
|
Mon Nov 17 11:12:24 2008 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||||
|
|
||||||
|
* bin/erb: remove -K option.
|
||||||
|
|
||||||
Mon Nov 17 02:19:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Mon Nov 17 02:19:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in (LIBRUBYARG_STATIC): fixed for --enable-rpath.
|
* configure.in (LIBRUBYARG_STATIC): fixed for --enable-rpath.
|
||||||
|
15
bin/erb
15
bin/erb
@ -72,20 +72,6 @@ class ERB
|
|||||||
end
|
end
|
||||||
raise "invalid trim mode #{arg.dump}" unless arg =~ /^[0-2]$/
|
raise "invalid trim mode #{arg.dump}" unless arg =~ /^[0-2]$/
|
||||||
trim_mode = arg.to_i
|
trim_mode = arg.to_i
|
||||||
when '-K' # KCODE
|
|
||||||
arg = ARGV.req_arg
|
|
||||||
case arg.downcase
|
|
||||||
when 'e', '-e', 'euc'
|
|
||||||
$KCODE = 'EUC'
|
|
||||||
when 's', '-s', 'sjis'
|
|
||||||
$KCODE = 'SJIS'
|
|
||||||
when 'u', '-u', 'utf8'
|
|
||||||
$KCODE = 'UTF8'
|
|
||||||
when 'n', '-n', 'none'
|
|
||||||
$KCODE = 'NONE'
|
|
||||||
else
|
|
||||||
raise "invalid KCODE #{arg.dump}"
|
|
||||||
end
|
|
||||||
when '-P'
|
when '-P'
|
||||||
disable_percent = true
|
disable_percent = true
|
||||||
when '--help'
|
when '--help'
|
||||||
@ -104,7 +90,6 @@ class ERB
|
|||||||
-v enable verbose mode
|
-v enable verbose mode
|
||||||
-d set $DEBUG to true
|
-d set $DEBUG to true
|
||||||
-r [library] load a library
|
-r [library] load a library
|
||||||
-K [kcode] specify KANJI code-set
|
|
||||||
-S [safe_level] set $SAFE (0..4)
|
-S [safe_level] set $SAFE (0..4)
|
||||||
-T [trim_mode] specify trim_mode (0..2, -)
|
-T [trim_mode] specify trim_mode (0..2, -)
|
||||||
-P ignore lines which start with "%"
|
-P ignore lines which start with "%"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user