class ChefCLI::Command::Diff
def apply_params!(params)
def apply_params!(params) remaining_args = parse_options(params) if no_comparison_specified?(remaining_args) ui.err("No comparison specified") ui.err("") ui.err(opt_parser) false elsif conflicting_args_and_opts_given?(remaining_args) ui.err("Conflicting arguments and options: git and Policy Group comparisons cannot be mixed") ui.err("") ui.err(opt_parser) false elsif conflicting_git_options_given? ui.err("Conflicting git options: --head and --git are exclusive") ui.err("") ui.err(opt_parser) false elsif config[:head] set_policyfile_path_from_args(remaining_args) @old_base = Policyfile::ComparisonBase::Git.new("HEAD", policyfile_lock_relpath) @new_base = Policyfile::ComparisonBase::Local.new(policyfile_lock_relpath) true elsif config[:git] set_policyfile_path_from_args(remaining_args) parse_git_comparison(config[:git]) else set_policyfile_path_from_args(remaining_args) parse_server_comparison(remaining_args) end end