diff options
author | Maciek Rząsa <[email protected]> | 2022-10-08 12:30:12 +0200 |
---|---|---|
committer | git <[email protected]> | 2022-10-08 19:30:34 +0900 |
commit | 0f231f2babf314593bcd233f4f5b8de8dc936145 (patch) | |
tree | 31dba845974ff638cf6767af2694b0901322534a /lib/optparse.rb | |
parent | 3531086095aed9d2898de686bc67ab3a6c2192de (diff) |
[ruby/optparse] Don't treat empty string as an option description
https://github.com/ruby/optparse/commit/078638ee6d
Diffstat (limited to 'lib/optparse.rb')
-rw-r--r-- | lib/optparse.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb index 1d42c79045..9dad2e4eda 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -1502,7 +1502,7 @@ XXX style = notwice(default_style.guess(arg = o), style, 'style') default_pattern, conv = search(:atype, Object) unless default_pattern else - desc.push(o) + desc.push(o) if o && !o.empty? end end |