Skip to content

Commit

Permalink
Help: skip helpless commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mistydemeo committed Jun 16, 2021
1 parent db1351a commit 350c6a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/dev/commands/help.rb
Expand Up @@ -10,6 +10,7 @@ def call(args, _name)
Dev::Commands::Registry.resolved_commands.each do |name, klass|
next if name == 'help'
puts CLI::UI.fmt("{{command:#{Dev::TOOL_NAME} #{name}}}")
next unless klass.respond_to?(:help)
if help = klass.help
puts CLI::UI.fmt(help)
end
Expand Down

0 comments on commit 350c6a7

Please sign in to comment.