From 0f231f2babf314593bcd233f4f5b8de8dc936145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciek=20Rz=C4=85sa?= Date: Sat, 8 Oct 2022 12:30:12 +0200 Subject: [ruby/optparse] Don't treat empty string as an option description https://github.com/ruby/optparse/commit/078638ee6d --- lib/optparse.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3