Processing command line arguments was discussed on this list last month:
http://code.whytheluckystiff.net/list/shoes/2008/09/10/3754-re-quirks-in-argv-handling.html

The example there of how to use command line arguments isn't working for me on 
Windows.


Z:\stuff\shoes>type testargv.rb
p ARGV

Z:\stuff\shoes>ruby testargv.rb -1
["-1"]

Z:\stuff\shoes>"C:\Program Files\Common Files\Shoes\0.r970\shoes.exe" 
testargv.rb -- -1


The "Shoes Console" window appears, telling me that:

Error in C:/Program Files/Common Files/Shoes/0.r970/lib/shoes.rb line 359 | 
(timestamp)
! Bad file descriptor


Any suggestions?


Jonathan

This e-mail from Practical Law Company (http://www.practicallaw.com) is subject 
to our terms of use (http://www.practicallaw.com/9-103-0884). Information about 
our companies: Practical Law Company Limited. Registered in England and Wales. 
Registered Number: 02889191. Registered Office: 19 Hatfields, London SE1 8DJ. 
Telephone: +44(0)20 7202 1200.  Practical Law Company, Inc. Incorporated in 
Delaware, USA.  Corporate Office: 747 Third Avenue, 36th Floor, New York, NY 
10017. Telephone: +1(646) 562-3400.

Reply via email to