lib/mercenary/presenter.rb in mercenary-0.3.1 vs lib/mercenary/presenter.rb in mercenary-0.3.2
- old
+ new
@@ -29,10 +29,10 @@
# Public: Builds a string representation of the subcommands
#
# Returns the string representation of the subcommands
def subcommands_presentation
return nil unless command.commands.size > 0
- command.commands.values.map(&:summarize).join("\n")
+ command.commands.values.uniq.map(&:summarize).join("\n")
end
# Public: Builds the command header, including the command identity and description
#
# Returns the command header as a String