Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug when class name is "Command" #416

Open
tzwm opened this issue May 4, 2014 · 1 comment
Open

bug when class name is "Command" #416

tzwm opened this issue May 4, 2014 · 1 comment

Comments

@tzwm
Copy link

tzwm commented May 4, 2014

When I use "Command" as class name, the help information will show twice.

require 'thor'

class Command < Thor
  desc "action1", "hahaha"
  def action1 
  end  

  desc "action2", "hehehe"
  def action2
  end  
end

Command.start

And the output is blow.

ruby tmp.rb
Commands:
  tmp.rb action1         # hahaha
  tmp.rb action1         # hahaha
  tmp.rb action2         # hehehe
  tmp.rb action2         # hehehe
  tmp.rb help [COMMAND]  # Describe available commands or one specific c...
@ConorSheehan1
Copy link

ConorSheehan1 commented Jan 9, 2019

+1 Same issue when class is named Util

ConorSheehan1 added a commit to ConorSheehan1/fits.deb that referenced this issue Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants