logo       

shim/ruby16/lib: * optparse.rb (OptionParser::Switch::PlacedArgument): adde: msg#00496

lang.ruby.cvs

Subject: shim/ruby16/lib: * optparse.rb (OptionParser::Switch::PlacedArgument): added. if

nobu Thu, 30 Jan 2003 08:04:11 +0000

Modified files:
shim/ruby16/lib:
optparse.rb
Log:
* optparse.rb (OptionParser::Switch::PlacedArgument): added. if
the next argument doesn't start with '-', use it as the value.

* optparse.rb (OptionParser::make_switch): fixed a bug of pattern.

* optparse.rb (Array): no need to guard.

* test_optparse.rb: added.

Revision Changes Path
1.7 +42 -25 shim/ruby16/lib/optparse.rb

http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/shim/ruby16/lib/optparse.rb?cvsroot=src&r1=1.6&r2=1.7




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise