From: Sebastian Hungerecker Date: 2007-04-25T00:24:22+09:00 Subject: Re: Getting user input at command line when script also takes arguments Paul wrote: > Can someone please tell me what's a good way to get user input for a > script that also requires command line arguments? Use STDIN.gets instead of Kernel#gets. Kernel#gets reads the input from files if any were given as command line parameters and only reads from STDIN if there weren't. STDIN.gets always reads from STDIN. HTH, Sebastian Hungerecker -- Ist so, weil ist so Bleibt so, weil war so