<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/optparse.rb, branch v3_0_4</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Bump optparse version to 0.1.1</title>
<updated>2021-11-22T01:51:35+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2021-11-11T08:16:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e735773fd4a0f9cbab82134e22d989bf540b744e'/>
<id>e735773fd4a0f9cbab82134e22d989bf540b744e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Separate `send` into `public_send` and `__send__`</title>
<updated>2020-10-27T07:12:45+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2020-10-27T04:42:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3198e7abd70bd2af977f2bb6c967e9df8f91adb0'/>
<id>3198e7abd70bd2af977f2bb6c967e9df8f91adb0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/optparse] Define OptionParser::Version</title>
<updated>2020-07-23T01:57:33+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2020-07-22T16:08:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f120e6520063913229a659741d96187eb2f7dd82'/>
<id>f120e6520063913229a659741d96187eb2f7dd82</id>
<content type='text'>
https://github.com/ruby/optparse/commit/4c0021b5b2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/optparse/commit/4c0021b5b2
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Method reference operator"</title>
<updated>2019-11-12T08:24:48+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2019-10-23T16:06:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=fb6a489af2765a3b56e301adf0019af6bbad6156'/>
<id>fb6a489af2765a3b56e301adf0019af6bbad6156</id>
<content type='text'>
This reverts commit 67c574736912003c377218153f9d3b9c0c96a17b.
[Feature #16275]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 67c574736912003c377218153f9d3b9c0c96a17b.
[Feature #16275]
</pre>
</div>
</content>
</entry>
<entry>
<title>OptionParser: document into: argument</title>
<updated>2019-10-26T17:24:20+00:00</updated>
<author>
<name>zverok</name>
<email>zverok.offline@gmail.com</email>
</author>
<published>2019-10-26T08:46:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f93cb6904c69de51bf14b1bcf9fcfc483584f4d3'/>
<id>f93cb6904c69de51bf14b1bcf9fcfc483584f4d3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make suggestions order stable [Bug #16263]</title>
<updated>2019-10-21T00:54:11+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2019-10-21T00:12:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=263ee6639d6f9f599613a20731c0646d125e0813'/>
<id>263ee6639d6f9f599613a20731c0646d125e0813</id>
<content type='text'>
As the result order of `DidYouMean::SpellChecker#correct` is
undefined, keep the order of the original candidates.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As the result order of `DidYouMean::SpellChecker#correct` is
undefined, keep the order of the original candidates.
</pre>
</div>
</content>
</entry>
<entry>
<title>Support DidYouMean by AmbiguousOption too</title>
<updated>2019-10-18T08:46:53+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2019-10-18T08:46:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e2b719bed640d4813fd5f753c80d33d01c612078'/>
<id>e2b719bed640d4813fd5f753c80d33d01c612078</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Defer adding additional info until getting the message of an error</title>
<updated>2019-10-18T08:39:16+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2019-10-18T08:39:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b4d308b41939659fe8a4df28afc82eb5205709d1'/>
<id>b4d308b41939659fe8a4df28afc82eb5205709d1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use DidYouMean.formatter</title>
<updated>2019-10-18T06:18:36+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2019-10-18T06:15:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=46fa301e82d50161fc7ec8e455d9d498b15b2c7a'/>
<id>46fa301e82d50161fc7ec8e455d9d498b15b2c7a</id>
<content type='text'>
Instead of building messages separately.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of building messages separately.
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/optparse.rb: Show a did_you_mean hint for unknown option</title>
<updated>2019-10-18T03:20:58+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2019-10-16T07:31:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c3b64a86bcd7773c081f5049115c57ec73d7a76a'/>
<id>c3b64a86bcd7773c081f5049115c57ec73d7a76a</id>
<content type='text'>
```
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 `&lt;main&gt;': invalid option: --baa (OptionParser::InvalidOption)
Did you mean?  baz
               bar
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
```
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 `&lt;main&gt;': invalid option: --baa (OptionParser::InvalidOption)
Did you mean?  baz
               bar
```
</pre>
</div>
</content>
</entry>
</feed>
