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

Fix formatted_usage for namespaced Thor::Group #441

Open
postmodern opened this issue Oct 8, 2014 · 0 comments
Open

Fix formatted_usage for namespaced Thor::Group #441

postmodern opened this issue Oct 8, 2014 · 0 comments

Comments

@postmodern
Copy link
Contributor

When defining a Thor::Group the usage banner goes all wonky.

module Namespace
  class CLI < Thor::Group

    desc "Does CLI stuff"

    class_option :foo, :type => :boolean, :default => true

    def stuff(arg)
    end

  end
end

Namespace::CLI.start
$ ruby cli.rb --help
Usage:
  cli.rb namespace:c_l_i

Options:
  [--foo], [--no-foo]  
                       # Default: true

Does CLI stuff

Since we are inheriting Thor::Group, there should be no namespace:c_l_i argument there.

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

1 participant