Ruby has a builtin library for command line parsing - optparse: <br><a href="http://www.ruby-doc.org/stdlib/libdoc/optparse/rdoc/index.html">http://www.ruby-doc.org/stdlib/libdoc/optparse/rdoc/index.html</a><br><br>Command line processing is straight ruby not watir, will work for what you're looking for.
<br><br>-Charley <br><br><br><div><span class="gmail_quote">On 8/3/06, <b class="gmail_sendername"><a href="mailto:jason_horn@insightbb.com">jason_horn@insightbb.com</a></b> <<a href="mailto:jason_horn@insightbb.com">jason_horn@insightbb.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div>Oh, gurus of Watir wonderment... </div>
<div> </div>
<div>Is there any way that I can execute a script with <em>named</em> 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. </div>
<div> </div>
<div>I am almost to the point of hacking it with string manipulation using include?:</div>
<div> </div>
<div> if argv[0].include?('named')</div>
<div> </div>
<div>But I don't want to go that route if there is something better...</div>
<div> </div>
</div><br>_______________________________________________<br>Wtr-general mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Wtr-general@rubyforge.org">Wtr-general@rubyforge.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://rubyforge.org/mailman/listinfo/wtr-general" target="_blank">http://rubyforge.org/mailman/listinfo/wtr-general</a><br><br></blockquote></div><br>