nobu
2ad7fb6dc1
optparse: Suppress warnings
Ruby warns "instance variable `@version` not initialized" for optparse when it receives `--version` option.
`test.rb`
```ruby
require 'optparse'
Version = '1'
OptionParser.new.parse(ARGV)
```
```
$ ruby -w test.rb --version
/home/pocke/.rbenv/versions/2.5.1/lib/ruby/2.5.0/optparse.rb:1168: warning: instance variable @version not initialized
/home/pocke/.rbenv/versions/2.5.1/lib/ruby/2.5.0/optparse.rb:1175: warning: instance variable @release not initialized
test 1
```
This change will suppress the warnings.
[Fix GH-1871]
From: Masataka Pocke Kuwabara <kuwabara@pocke.me>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-05-06 09:53:33 +00:00
..
2018-05-04 13:30:25 +00:00
2018-03-17 15:13:39 +00:00
2018-04-14 13:05:52 +00:00
2018-04-22 21:21:06 +00:00
2017-10-22 11:27:06 +00:00
2018-03-28 03:18:00 +00:00
2018-05-01 03:12:37 +00:00
2017-10-08 07:00:01 +00:00
2017-12-12 11:56:25 +00:00
2018-04-05 09:48:16 +00:00
2017-10-08 07:00:01 +00:00
2018-04-25 14:00:47 +00:00
2018-04-03 10:22:45 +00:00
2017-12-12 08:34:13 +00:00
2017-12-11 03:27:47 +00:00
2017-12-12 11:56:25 +00:00
2017-12-13 05:24:01 +00:00
2018-03-18 10:28:58 +00:00
2017-12-12 11:56:25 +00:00
2018-02-28 12:12:20 +00:00
2017-12-22 08:00:10 +00:00
2018-04-16 10:20:15 +00:00
2017-12-12 11:56:25 +00:00
2017-10-21 13:34:19 +00:00
2017-12-12 11:56:25 +00:00
2018-04-14 13:05:52 +00:00
2018-01-18 00:52:01 +00:00
2018-02-06 23:47:49 +00:00
2018-04-02 04:44:35 +00:00
2017-10-08 07:00:01 +00:00
2017-10-08 07:00:01 +00:00
2018-04-30 10:01:08 +00:00
2018-01-08 01:11:33 +00:00
2018-05-06 09:53:33 +00:00
2018-02-06 23:52:30 +00:00
2017-12-18 01:51:53 +00:00
2018-03-26 05:56:26 +00:00
2018-03-06 03:31:46 +00:00
2018-02-16 08:08:06 +00:00
2017-12-11 08:18:01 +00:00
2018-01-07 17:49:46 +00:00
2018-05-05 03:12:20 +00:00
2018-02-25 13:52:07 +00:00
2017-10-08 07:00:01 +00:00
2017-12-12 11:56:25 +00:00
2017-10-08 07:00:01 +00:00
2018-03-28 10:22:57 +00:00
2017-12-12 11:56:25 +00:00
2018-03-28 10:03:03 +00:00
2017-10-08 07:00:01 +00:00
2018-04-21 20:04:05 +00:00
2017-10-24 18:08:00 +00:00
2018-03-02 12:56:37 +00:00