1

All I could find out is -W:no-deprecated & -W:no-experimental flags.

I have tried to understand through RUBYOPT's spec but got lost. Are there any other options available for the RUBYOPT env?

4

1 回答 1

2

检查 Ruby 联机帮助页(运行man ruby)。

RUBYOPT    Additional Ruby options.

  e.g. RUBYOPT="-w -Ke"

  Note that RUBYOPT can contain only -d, -E, -I, -K, -r, -T, -U, -v, -w, -W, --debug, --disable-FEATURE and --enable-FEATURE.

各个标志的含义在手册页本身中进行了解释。

于 2020-01-06T17:28:15.710 回答