bin/erb: improve documentation of -P flag

man/erb.1: ditto

[Bug #15421]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2018-12-16 14:24:20 +00:00
parent 9446db408c
commit f84ae88b2c
2 changed files with 5 additions and 6 deletions

View File

@ -114,9 +114,9 @@ class ERB
-d set $DEBUG to true -d set $DEBUG to true
-r library load a library -r library load a library
-E ex[:in] set default external/internal encodings -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, -) -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 var=value set variable
EOU EOU
exit 1 exit 1

View File

@ -1,5 +1,5 @@
.\"Ruby is copyrighted by Yukihiro Matsumoto <matz@netlab.jp>. .\"Ruby is copyrighted by Yukihiro Matsumoto <matz@netlab.jp>.
.Dd October 21, 2017 .Dd December 16, 2018
.Dt ERB \&1 "Ruby Programmer's Reference Guide" .Dt ERB \&1 "Ruby Programmer's Reference Guide"
.Os UNIX .Os UNIX
.Sh NAME .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. .Pf ( Li "Encoding.default_internal" ) will be nil.
.Pp .Pp
.It Fl P .It Fl P
Evaluates lines starting with Disables ruby code evaluation for lines beginning with
.Li "%" .Li "%" .
as Ruby code and removes the tailing EOLs.
.Pp .Pp
.It Fl S Ar level .It Fl S Ar level
Specifies the safe level in which eRuby script will run. Specifies the safe level in which eRuby script will run.