lib/adhearsion/generators.rb in adhearsion-2.0.0.rc5 vs lib/adhearsion/generators.rb in adhearsion-2.0.0
- old
+ new
@@ -19,10 +19,10 @@
end
end
def invoke(generator_name, args = ARGV)
klass = Generators.mappings[generator_name.to_sym]
- raise UnknownGeneratorError, generator_name unless klass
+ raise CLI::UnknownGeneratorError, generator_name unless klass
args << "--help" if args.empty? && klass.arguments.any?(&:required?)
klass.start args
end