summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-18 14:53:26 (GMT)
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-18 14:53:26 (GMT)
commit6c45fa78cb457a736621f0f6d66f808287d7e990 (patch)
tree59c1c09ff2162529cf34a521f99589b2dd83dda3 /bin
parent2c23924e91d515adbcda1a201818113612ac0caa (diff)
* bin/erb: $SAFE=3 is obsolete.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bin')
-rwxr-xr-xbin/erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/erb b/bin/erb
index 1ba49c9..6a88c3b 100755
--- a/bin/erb
+++ b/bin/erb
@@ -76,7 +76,7 @@ class ERB
require ARGV.req_arg
when '-S' # security level
arg = ARGV.req_arg
- raise "invalid safe_level #{arg.dump}" unless arg =~ /\A[0-3]\z/
+ raise "invalid safe_level #{arg.dump}" unless arg =~ /\A[0-1]\z/
safe_level = arg.to_i
when '-T' # trim mode
arg = ARGV.req_arg
@@ -112,7 +112,7 @@ class ERB
-v enable verbose mode
-d set $DEBUG to true
-r library load a library
- -S safe_level set $SAFE (0..3)
+ -S safe_level set $SAFE (0..1)
-E ex[:in] set default external/internal encodings
-U set default encoding to UTF-8.
-T trim_mode specify trim_mode (0..2, -)