Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Alan Baird
-f command line option conflicts with watir [ reply ]  
2009-08-12 18:42
Hugh -

I was implementing a command line wrapper for my framework and I came across an interesting problem. I wanted to have an unambiguous place to instantiate my framework so I decided to create a wrapper. In my wrapper, I instantiated my framework (which ultimately gets around to requiring 'watir/ie') and then parsed ARGV for arguments to hand off to Rasta. For a long time I had a problem with this because the -f argument got removed from ARGV. I discovered this is because watir/ie eats the -f switch to set $FAST_SPEED.

Ultimately, this is a problem with my wrapper, but I thought I should point this out just in case anyone ran into the same problem. Also, since Rasta and Watir both use -f, these options are incompatible with each other.

Alan