Skip to content

Commit

Permalink
Added the statement to determine a use of package_name
Browse files Browse the repository at this point in the history
  • Loading branch information
amanelis authored and sferik committed Mar 19, 2013
1 parent 345e9fd commit 94fdcb0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/thor.rb
Expand Up @@ -195,7 +195,12 @@ def help(shell, subcommand = false)
end
list.sort!{ |a,b| a[0] <=> b[0] }

shell.say "Commands:"
if @package_name
shell.say "#{@package_name} commands:"
else
shell.say "Commands:"
end

shell.print_table(list, :indent => 2, :truncate => true)
shell.say
class_options_help(shell)
Expand Down

0 comments on commit 94fdcb0

Please sign in to comment.