[#47409] [ruby-trunk - Feature #6973][Open] Add an #integral? method to Numeric to test for whole-number values — "regularfry (Alex Young)" <alex@...>

12 messages 2012/09/03

[#47481] [ruby-trunk - Bug #7008][Open] rake is crashing when trying to compile ffi gem — "drookie (Eugene M. Zheganin Eugene M. Zheganin)" <eugene@...>

10 messages 2012/09/12

[#47505] [ruby-trunk - Feature #7019][Open] allow `private` and `protected` keywords to take blocks — "alexeymuranov (Alexey Muranov)" <redmine@...>

15 messages 2012/09/13

[#47582] [ruby-trunk - Bug #7037][Open] float formatting inconsistently rounds half to even — "headius (Charles Nutter)" <headius@...>

14 messages 2012/09/19

[#47638] [ruby-trunk - Bug #7046][Open] ERB#run and ERB#result are not safe for concurrent use — "headius (Charles Nutter)" <headius@...>

11 messages 2012/09/21

[#47655] [ruby-trunk - Feature #7051][Open] Extend caller_locations API to include klass and bindings. Allow caller_locations as a method hanging off Thread. — "sam.saffron (Sam Saffron)" <sam.saffron@...>

13 messages 2012/09/23

[#47657] [ruby-trunk - Feature #7055][Open] Allow `.foo=` as a synonym of `self.foo=` — "alexeymuranov (Alexey Muranov)" <redmine@...>

11 messages 2012/09/23

[#47730] [ruby-trunk - Bug #7085][Open] Subversion → GitHub gateway stops. — "shyouhei (Shyouhei Urabe)" <shyouhei@...>

27 messages 2012/09/29

[#47735] [ruby-trunk - Bug #7087][Open] ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist — "rklemme (Robert Klemme)" <shortcutter@...>

10 messages 2012/09/29

[#47759] [ruby-trunk - Bug #7092][Open] StringScanner start-of-line matches false positives, while lookbehind for a newline gives false negatives — "jayferd (Jay Adkisson)" <jjmadkisson@...>

8 messages 2012/09/30

[ruby-core:47468] Re: [ruby-trunk - Bug #6997] Improve documentation for OptionParser

From: Zachary Scott <zachary@...>
Date: 2012-09-10 20:30:38 UTC
List: ruby-core #47468
Better and more examples are always welcome, if you have any ideas
please feel free to submit a patch.

Otherwise, I'll try to put something together for this and #6996
sometime this week.


On Mon, Sep 10, 2012 at 4:02 PM, eike.rb (Eike Dierks) <[email protected]> wrote:
>
> Issue #6997 has been updated by eike.rb (Eike Dierks).
>
>
> Ok, I was a bit blind on that,
> I think that I now do understand how it works.
>
> But anyway, the documentation should be improved.
>
> I'd suggest to improve the examples to make it more clear upfront.
>
>
> ----------------------------------------
> Bug #6997: Improve documentation for OptionParser
> https://bugs.ruby-lang.org/issues/6997#change-29235
>
> Author: eike.rb (Eike Dierks)
> Status: Open
> Priority: Normal
> Assignee:
> Category:
> Target version:
> ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10]
>
>
> The documentation for OptionParser should be improved.
>
> The current examples and and documentation do not yet describe
> how to access non option args
>
> I suggest to change the simple example in the doc as follows:
>
>    opts.banner = "Usage: example.rb [options] file ..."
>
>    p "files:" + ARGV
>
>
> It should be stated explicitely in the description,
> that parse! modifies the ARGV and removes all parseable args.
>
> At least that is how I believe that the OptionParser.parse! works?
> not yet tried it myself
>
>
>
>
>
>
>
>
>
>
>
>
> --
> http://bugs.ruby-lang.org/
>

In This Thread