Command options ignored

  • Thread starter Thread starter Ron Stone
  • Start date Start date
R

Ron Stone

I have been experimenting with Ruby.
I have set file extension .rb to invoke /bin/ruby.exe

If I run a Ruby program as follows, all is well: (my help is displayed)

ruby myprog.rb -h

If I run the program thus, the options are not passed to the program: (the
program just runs)

myprog.rb

Is this normal? Is there a way to pass the options with this invocation
type?

Thanks.
 
Ron said:
I have been experimenting with Ruby.
I have set file extension .rb to invoke /bin/ruby.exe

If I run a Ruby program as follows, all is well: (my help is displayed)

ruby myprog.rb -h

If I run the program thus, the options are not passed to the program: (the
program just runs)

myprog.rb

Is this normal? Is there a way to pass the options with this invocation
type?

You've posted to a newsgroup for basic tech support of the Windows XP
operating system. You need to find a newsgroup for Ruby programmers.
This Google search will help:

http://www.google.com/search?hl=en&q=Ruby+programming+language&btnG=Google+Search


Malke
 
My apologies.
I thought that the recognizing the file extension and invoking the
appropriate program (Ruby or otherwise) would be an XP thingy.
I'll try the Ruby forums.
Thanks.
 
Back
Top