Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

common.josé

  • Loading branch information...
commit e7f1e5835638af5c635fb4d538222fa9925eebc9 1 parent 60fb50f
Carlhuda authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/thor.rb
View
3  lib/thor.rb
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.