Jeremy Evans
|
ab3cb29bd9
|
Avoid defining the same test class in multiple files
Should fix issues with parallel testing sometimes not running all
tests.
This should be viewed skipping whitespace changes.
Fixes [Bug #18731]
|
2022-04-22 15:00:16 -07:00 |
|
Nobuyoshi Nakada
|
e28dbd0f3d
|
[ruby/optparse] Fix for ruby 3.0 or earlier
9e29d86c12
|
2022-01-12 21:16:02 +09:00 |
|
Nobuyoshi Nakada
|
743a41f7e3
|
[ruby/optparse] DidYouMean::PlainFormatter is deprecated
0ac9957696
|
2022-01-12 21:16:02 +09:00 |
|
Yuki Nishijima
|
03c54a09ec
|
Revert "Revert "Replace an deprecated constant with a new one in did_you_mean""
This reverts commit 1527f7569b .
|
2021-12-24 23:21:55 +09:00 |
|
Yuki Nishijima
|
1527f7569b
|
Revert "Replace an deprecated constant with a new one in did_you_mean"
This reverts commit 573d9d3a4a .
|
2021-12-23 10:48:27 +09:00 |
|
Yuki Nishijima
|
573d9d3a4a
|
Replace an deprecated constant with a new one in did_you_mean
|
2021-12-22 21:21:27 +09:00 |
|
Nobuyoshi Nakada
|
b5d9c44267
|
[ruby/optparse] Fix typo [ci skip]
0aa18752cf
|
2021-11-03 19:55:24 +09:00 |
|
Yuki Nishijima
|
905be49bf6
|
Remove the test for DYM's verbose formatter
|
2021-10-22 21:14:01 -04:00 |
|
Nobuyoshi Nakada
|
5ad32d5504
|
LoadError is not a subclass of StandardError
|
2019-11-29 11:25:23 +09:00 |
|
MSP-Greg
|
71ffe40a44
|
test/optparse/test_did_you_mean.rb - fix suggestion order
|
2019-10-21 09:53:56 +09:00 |
|
Nobuyoshi Nakada
|
e2b719bed6
|
Support DidYouMean by AmbiguousOption too
|
2019-10-18 17:46:53 +09:00 |
|
Nobuyoshi Nakada
|
e29e49abf0
|
Default DidYouMean.formatter to PlainFormatter
|
2019-10-18 16:43:40 +09:00 |
|
Nobuyoshi Nakada
|
d4e52f672c
|
Added no suggestion test case
|
2019-10-18 15:19:26 +09:00 |
|
Nobuyoshi Nakada
|
46fa301e82
|
Use DidYouMean.formatter
Instead of building messages separately.
|
2019-10-18 15:18:36 +09:00 |
|
Yusuke Endoh
|
c3b64a86bc
|
lib/optparse.rb: Show a did_you_mean hint for unknown option
```
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
```
|
2019-10-18 12:20:58 +09:00 |
|