class ChefCLI::Command::ShowPolicy

def apply_params!(params)

def apply_params!(params)
  remaining_args = parse_options(params)
  if remaining_args.empty? && show_summary_diff?
    ui.err("The --summary-diff option can only be used when showing a single policy")
    ui.err("")
    ui.err(opt_parser)
    false
  elsif remaining_args.empty?
    @show_all_policies = true
    true
  elsif remaining_args.size == 1
    @policy_name = remaining_args.first
    @show_all_policies = false
    true
  elsif remaining_args.size == 2
    @policy_name = remaining_args[0]
    @policy_group = remaining_args[1]
    @show_all_policies = false
    true
  else
    ui.err("Too many arguments")
    ui.err("")
    ui.err(opt_parser)
    false
  end
end