[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

read ruby's flag

Mohammad Khan

12/23/2005 4:33:00 PM

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 Khan


1 Answer

Antonio Cangiano

12/23/2005 11:50:00 PM

0

Mohammad Khan 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
--
Antonio Cangiano
My Ruby blog: http://www.antonioca...