From: Hal Fulton Date: 2004-10-12T23:55:41+09:00 Subject: Re: ARGV || something Bil Kleb wrote: > Ara.T.Howard@noaa.gov wrote: > >> On Sat, 9 Oct 2004, Bil Kleb wrote: >> >>> I used to do this with VERSION < 1.8, >>> >>> components = ARGV || %w[ Adjoint Design FUN3D_90 GetGrad >>> GridMove HRefine LibF90 Mixed Party >>> PHYSICS_MODULES Rad ] >> >> >> even in 1.6.8 ARGV is an Array, and so always true? you have code >> that gives default arguments like this? > > > I thought I did, but upon some CVS log checking, this bit of > code just snuck in and this "option" was never actually put > to the test, i.e., used. > > Thanks everyone for suggestions that actually work. :) Maybe you meant to say: ARGV[0] || stuff That would work, though it's a little clunky. I probably even recommended it in my earlier days... ;) Hal