From: Fabian Streitel Date: 2009-09-24T02:40:57+09:00 Subject: Re: When to use $DEBUG and $VERBOSE --00c09ffb528584889b0474423770 Content-Type: text/plain; charset=ISO-8859-1 well, setting $VERBOSE will also tamper with the display of warnings issued by ruby, so it depends if that is included in what you want to achieve with --verbose. In general, you could probably tie --debug to $DEBUG since to me that's a developer's switch. --verbose on the other hand sounds to me like it's intended for end users, so ruby warnings to them will probably only be confusing (e.g. the insecure directory warning) Greetz! 2009/9/23 Intransition > Ok, so I have a bin script and like so many other's use some common > options such as --verbose and --debug. Generally I have been keeping > these flags in an options hash, specific to my app. But I wondering if > perhaps these may just as well use the global vars. Is that a good > practice, or are these globals specifically for something more > specialized for use by developers and should not be used by > applications? > > --00c09ffb528584889b0474423770--