Class: Telegrator::Generators::Base
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Telegrator::Generators::Base
- Defined in:
- lib/telegrator/generators/base.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.dispatch(command, given_args, given_opts, config) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/telegrator/generators/base.rb', line 5 def dispatch(command, given_args, given_opts, config) if command.nil? && given_args.empty? && given_opts.empty? given_args << '--help' given_opts << '--help' end super end |