# File lib/hammer_cli/subcommand.rb, line 53 def subcommand(name, description, subcommand_class = self, &block) existing = find_subcommand(name) if existing raise HammerCLI::CommandConflict, _("can't replace subcommand %<name>s (%<existing_class>s) with %<name>s (%<new_class>s)") % { :name => name, :existing_class => existing.subcommand_class, :new_class => subcommand_class } end super end