lib/dry/cli/option.rb in dry-cli-0.6.0 vs lib/dry/cli/option.rb in dry-cli-0.7.0
- old
+ new
@@ -30,11 +30,11 @@
# @since 0.1.0
# @api private
def desc
desc = options[:desc]
- values ? "#{desc}: (#{values.join('/')})" : desc
+ values ? "#{desc}: (#{values.join("/")})" : desc
end
# @since 0.1.0
# @api private
def required?
@@ -106,10 +106,10 @@
# @since 0.1.0
# @api private
def alias_names
aliases
- .map { |name| name.gsub(/^-{1,2}/, '') }
+ .map { |name| name.gsub(/^-{1,2}/, "") }
.compact
.uniq
.map { |name| name.size == 1 ? "-#{name}" : "--#{name}" }
.map { |name| boolean? ? name : "#{name} VALUE" }
end