We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a43d92f commit 5deaf29Copy full SHA for 5deaf29
lib/thor.rb
@@ -327,6 +327,8 @@ def subcommand_classes
327
end
328
329
def subcommand(subcommand, subcommand_class)
330
+ return subcommand_classes[subcommand.to_s] if subcommands.include? subcommand.to_s
331
+
332
subcommands << subcommand.to_s
333
subcommand_class.subcommand_help subcommand
334
subcommand_classes[subcommand.to_s] = subcommand_class
0 commit comments