lib/cl/parser/format.rb in cl-1.1.5 vs lib/cl/parser/format.rb in cl-1.2.0

- old
+ new

@@ -11,10 +11,10 @@ def long(str) strs = [unnegate(str)] strs = strs.map { |str| negated(str) }.flatten if flag? strs = collect(strs, :dashed) strs = collect(strs, :underscored) - strs = collect(strs, :valued) if flag? + strs = collect(strs, :valued) if flag? && Cl.flag_values strs.uniq end def short(str) str = "#{str} #{opt.name.upcase}" unless opt.flag? || str.include?(' ')