diff --git a/bin/erb b/bin/erb index d060caba90..d5e51ee969 100755 --- a/bin/erb +++ b/bin/erb @@ -114,9 +114,9 @@ def run(factory=ERB) -d set $DEBUG to true -r library load a library -E ex[:in] set default external/internal encodings - -U set default encoding to UTF-8. + -U set default encoding to UTF-8 -T trim_mode specify trim_mode (0..2, -) - -P ignore lines which start with "%" + -P disable ruby code evaluation for lines beginning with % var=value set variable EOU exit 1 diff --git a/man/erb.1 b/man/erb.1 index e2821acb6d..d8739a7639 100644 --- a/man/erb.1 +++ b/man/erb.1 @@ -1,5 +1,5 @@ .\"Ruby is copyrighted by Yukihiro Matsumoto . -.Dd October 21, 2017 +.Dd December 16, 2018 .Dt ERB \&1 "Ruby Programmer's Reference Guide" .Os UNIX .Sh NAME @@ -45,9 +45,8 @@ You can omit the one for internal encodings, then the value .Pf ( Li "Encoding.default_internal" ) will be nil. .Pp .It Fl P -Evaluates lines starting with -.Li "%" -as Ruby code and removes the tailing EOLs. +Disables ruby code evaluation for lines beginning with +.Li "%" . .Pp .It Fl S Ar level Specifies the safe level in which eRuby script will run.