Age | Commit message (Collapse) | Author |
|
https://github.com/ruby/optparse/commit/f5018a8b1c
|
|
With verbopse mode (-w), the interpreter shows a warning if
a block is passed to a method which does not use the given block.
Warning on:
* the invoked method is written in C
* the invoked method is not `initialize`
* not invoked with `super`
* the first time on the call-site with the invoked method
(`obj.foo{}` will be warned once if `foo` is same method)
[Feature #15554]
`Primitive.attr! :use_block` is introduced to declare that primitive
functions (written in C) will use passed block.
For minitest, test needs some tweak, so use
https://github.com/minitest/minitest/commit/ea9caafc0754b1d6236a490d59e624b53209734a
for `test-bundled-gems`.
|
|
https://github.com/ruby/optparse/commit/77dccce37c
|
|
https://github.com/ruby/optparse/commit/59b9fd7ddc
|
|
https://github.com/ruby/optparse/commit/07e83673a8
|
|
[Feature #16495]
|
|
https://github.com/ruby/optparse/commit/33956ce93f
|
|
To work with options defined as `--[no]-something`.
Fix https://bugs.ruby-lang.org/issues/20252
Fix https://github.com/ruby/optparse/pull/60
https://github.com/ruby/optparse/commit/78afdab307
|
|
Rake uses [lambda] as callbacks.
Calling it without omitted argument raises an `ArgumentError`.
lambda: https://github.com/ruby/rake/blob/master/lib/rake/application.rb#L543
https://github.com/ruby/optparse/commit/213cb03b59
|
|
Fix https://github.com/ruby/optparse/pull/55
https://github.com/ruby/optparse/commit/9d53e74aa4
|
|
`--[no]-something`
https://github.com/ruby/optparse/commit/4e346ad337
|
|
https://github.com/ruby/optparse/commit/b14c2c644d
|
|
https://github.com/ruby/optparse/commit/324ff21f04
|
|
https://github.com/ruby/optparse/commit/acbf6e3e12
|
|
https://github.com/ruby/optparse/commit/e8bee0be8f
|
|
Date/DateTime/Time/URI/Shellwords support
Fixes [Bug #19566]
https://github.com/ruby/optparse/commit/fb91d97c10
|
|
https://github.com/ruby/optparse/commit/3e63d878f8
Notes:
Merged: https://github.com/ruby/ruby/pull/7025
|
|
https://github.com/ruby/optparse/commit/73661899ad
Notes:
Merged: https://github.com/ruby/ruby/pull/7025
|
|
https://github.com/ruby/optparse/commit/2a1e157ae1
|
|
https://github.com/ruby/optparse/commit/766f567405
|
|
https://github.com/ruby/optparse/commit/c80dfb1ebd
|
|
(https://github.com/ruby/optparse/pull/38)
https://github.com/ruby/optparse/commit/12529653cd
|
|
https://github.com/ruby/optparse/commit/ab5073e4d8
|
|
(https://github.com/ruby/optparse/pull/42)
OptionParser#load learns .load(into: Hash)
https://github.com/ruby/optparse/commit/2ea626fcff
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
https://github.com/ruby/optparse/commit/078638ee6d
|
|
(https://github.com/ruby/optparse/pull/35)
https://github.com/ruby/optparse/commit/f2b8318631
Notes:
Merged: https://github.com/ruby/ruby/pull/6200
|
|
https://github.com/ruby/optparse/commit/a3f0ec21b1
|
|
https://github.com/ruby/optparse/commit/dab72c543d
|
|
https://github.com/ruby/optparse/commit/1226b670e6
|
|
- Removed a largish block of repeated text.
- Added sections "Top List and Base List" and "Methods for Defining Options" (on, define, etc.).
- Linked from class OptionParser doc to the tutorial.
https://github.com/ruby/optparse/commit/7f3195b9db
|
|
https://github.com/ruby/optparse/commit/f23d750d14
|
|
https://github.com/ruby/optparse/commit/cccb28e0de
|
|
https://github.com/ruby/optparse/commit/d55d9284c3
|
|
https://github.com/ruby/optparse/commit/2fe984a603
|
|
Close https://github.com/ruby/optparse/issues/3
https://github.com/ruby/optparse/commit/94c5cf4032
|
|
https://github.com/ruby/optparse/commit/f5f5e202dd
|
|
This allows you to disable allowing abbreviations of long options
and using short options for long options.
Implements Ruby Feature #11523
https://github.com/ruby/optparse/commit/dfefb2d2e2
|
|
|
|
https://github.com/ruby/optparse/commit/4c0021b5b2
|
|
This reverts commit 67c574736912003c377218153f9d3b9c0c96a17b.
[Feature #16275]
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/2615
|
|
As the result order of `DidYouMean::SpellChecker#correct` is
undefined, keep the order of the original candidates.
|
|
|
|
|
|
Instead of building messages separately.
|
|
```
require 'optparse'
OptionParser.new do |opts|
opts.on("-f", "--foo", "foo") {|v| }
opts.on("-b", "--bar", "bar") {|v| }
opts.on("-c", "--baz", "baz") {|v| }
end.parse!
```
```
$ ruby test.rb --baa
Traceback (most recent call last):
test.rb:7:in `<main>': invalid option: --baa (OptionParser::InvalidOption)
Did you mean? baz
bar
```
Notes:
Merged: https://github.com/ruby/ruby/pull/2561
|
|
The documentation describes these arguments being hashes, and the method
is called with hashes, so a hash default makes more sense.
The method would fail previously if called without arguments and @short
or @long contained a non-integer value.
Fixes [Bug #10928]
|
|
|
|
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
|
[ruby-list:50718]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|