class ChefCLI::Command::GeneratorCommands::Policyfile
def read_and_validate_params
def read_and_validate_params arguments = parse_options(params) case arguments.size when 0 if chef_repo_mode? err("ERROR: You must give a policy name when generating a policy in a chef-repo.") @params_valid = false false else use_default_policy_settings end when 1 derive_policy_settings_from_args(arguments[0]) else @params_valid = false err("ERROR: too many arguments") false end end