To read ruby’s --verbose flag, I can read $VERBOSE from code,
What is the variable name to read ‘-W level’ (warning level)?
Thanks,
Mohammad K.
To read ruby’s --verbose flag, I can read $VERBOSE from code,
What is the variable name to read ‘-W level’ (warning level)?
Thanks,
Mohammad K.
Mohammad K. wrote:
To read ruby’s --verbose flag, I can read $VERBOSE from code,
What is the variable name to read ‘-W level’ (warning level)?
Hi Mohammad,
$-w (or $VERBOSE) will give you:
-W0 -> nil
No option or -W1 -> false
-W2 -> true
HTH
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs