require 'thor' require 'watir_install/generators/new_project' module WatirInstall class CLI < Thor desc "new ", "Create a new test project" method_option :no_git, type: :boolean, desc: "Do not initialize project with git" method_option :test_runner, type: :string, desc: "Do not initialize project with git" def new(name) no_git = options[:no_git] ? 'true' : 'false' test_runner = options[:test_runner] WatirInstall::Generators::NewProject.start([name, no_git, test_runner]) end end end