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-04-28 09:02:56 +00:00
2018-05-03 01:24:09 +00:00
2018-04-17 07:03:44 +00:00
2018-04-17 08:18:56 +00:00
2018-03-13 06:29:02 +00:00
2018-04-19 23:46:55 +00:00
2018-03-13 08:18:03 +00:00
2018-04-17 08:18:57 +00:00
2018-02-15 05:34:20 +00:00
2018-04-14 13:05:52 +00:00
2018-04-28 09:22:07 +00:00
2018-03-17 06:41:35 +00:00
2018-02-17 10:04:22 +00:00
2018-04-30 02:17:03 +00:00
2018-05-06 09:53:33 +00:00
2018-02-06 23:52:30 +00:00
2018-04-28 01:47:58 +00:00
2018-03-26 10:18:46 +00:00
2018-03-06 05:59:29 +00:00
2018-04-28 01:36:18 +00:00
2018-03-13 13:03:12 +00:00
2018-04-28 01:36:18 +00:00
2018-05-04 06:12:12 +00:00
2018-02-17 14:03:52 +00:00
2018-03-28 10:08:57 +00:00
2018-04-28 08:41:19 +00:00
2018-04-30 23:53:55 +00:00
2018-03-22 11:20:03 +00:00
2018-04-30 02:17:03 +00:00
2018-03-13 06:29:02 +00:00
2018-04-17 06:38:08 +00:00
2018-02-01 09:07:16 +00:00
2018-04-28 09:22:07 +00:00
2018-02-25 13:52:07 +00:00
2018-04-04 15:44:56 +00:00
2018-03-28 10:03:03 +00:00