class Rails::Command::GenerateCommand

def perform(*)

def perform(*)
  generator = args.shift
  return help unless generator
  require_application_and_environment!
  load_generators
  ARGV.replace(args) # set up ARGV for third-party libraries
  Rails::Generators.invoke generator, args, behavior: :invoke, destination_root: Rails::Command.root
end