Is there an equivalent in Ruby of Python's getopt (it parses command-line
arguments)?
Mike Steiner
Is there an equivalent in Ruby of Python's getopt (it parses command-line
arguments)?
Mike Steiner
quoth the Mike Steiner:
Is there an equivalent in Ruby of Python's getopt (it parses command-line
arguments)?Mike Steiner
There are two: GetOptLong and OptionParser. Both are in the Standard Library.
I believe GetOptLong is closer to the Python implementation.
-d
--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
Look into the GetoptLong and optparse libraries. They are both part
of the Ruby standard library.
On 5/14/07, Mike Steiner <mikejaysteiner@gmail.com> wrote:
Is there an equivalent in Ruby of Python's getopt (it parses command-line
arguments)?
--
Avdi