[Wtr-general] Named Command Line arguments
Charley Baker
charley.baker at gmail.com
Thu Aug 3 16:10:06 EDT 2006
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, jason_horn at insightbb.com <jason_horn at insightbb.com> 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 at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060803/331bf0b3/attachment.html
More information about the Wtr-general
mailing list