Permalink
Browse files

common.josé

  • Loading branch information...
1 parent 60fb50f commit e7f1e5835638af5c635fb4d538222fa9925eebc9 Carlhuda committed Aug 2, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/thor.rb
View
@@ -252,7 +252,8 @@ def dispatch(meth, given_args, given_opts, config) #:nodoc:
# the namespace should be displayed as arguments.
#
def banner(task, namespace = nil, subcommand = false)
- "#{$0} #{task.formatted_usage(self, $thor_runner, subcommand)}"
+ base = File.basename($0).split(" ").first
+ "#{base} #{task.formatted_usage(self, $thor_runner, subcommand)}"
end
def baseclass #:nodoc:

0 comments on commit e7f1e58

Please sign in to comment.