Ruby has a builtin library for command line parsing - optparse:
http://www.ruby-doc.org/stdlib/libdoc/optparse/rdoc/index.html

Command line processing is straight ruby not watir, will work for what you're looking for.

-Charley


On 8/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
Oh, gurus of Watir wonderment... 
 
Is there any way that I can execute a script with named command-line arguments...  I am aware of the argv[] array, but am trying to implement something a little easier to get along with than that. 
 
I am almost to the point of hacking it with string manipulation using include?:
 
    if argv[0].include?('named')
 
But I don't want to go that route if there is something better...
 

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to