lib/pdk/cli/new/module.rb in pdk-1.9.1 vs lib/pdk/cli/new/module.rb in pdk-1.10.0

- old
+ new

@@ -3,10 +3,11 @@ name 'module' usage _('module [options] [module_name] [target_dir]') summary _('Create a new module named [module_name] using given options') PDK::CLI.template_url_option(self) + PDK::CLI.template_ref_option(self) PDK::CLI.skip_interview_option(self) PDK::CLI.full_interview_option(self) option nil, 'license', _('Specifies the license this module is written under. ' \ "This should be a identifier from https://spdx.org/licenses/. Common values are 'Apache-2.0', 'MIT', or 'proprietary'."), argument: :required @@ -15,9 +16,11 @@ run do |opts, args, _cmd| require 'pdk/generate/module' module_name = args[0] target_dir = args[1] + + PDK::CLI::Util.validate_template_opts(opts) if opts[:'skip-interview'] && opts[:'full-interview'] PDK.logger.info _('Ignoring --full-interview and continuing with --skip-interview.') opts[:'full-interview'] = false end