/*
 * Copyright 2012-present Facebook, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may
 * not use this file except in compliance with the License. You may obtain
 * a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */

package com.facebook.buck.cli;

import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;

import org.kohsuke.args4j.Argument;
import org.kohsuke.args4j.Option;

import java.util.List;

public class AuditCommandOptions extends AbstractCommandOptions {

  /**
   * Expected usage:
   * <pre>
   * buck audit classpath --dot //java/com/facebook/pkg:pkg > /tmp/graph.dot
   * dot -Tpng /tmp/graph.dot -o /tmp/graph.png
   * </pre>
   */
  @Option(name = "--dot",
      usage = "Print dependencies as Dot graph")
  private boolean generateDotOutput;

  private final BuckConfig buckConfig;

  @Argument
  private List<String> arguments = Lists.newArrayList();

  public AuditCommandOptions(BuckConfig buckConfig) {
    super(buckConfig);
    this.buckConfig = Preconditions.checkNotNull(buckConfig);
  }

  public List<String> getArguments() {
    return arguments;
  }

  public List<String> getArgumentsFormattedAsBuildTargets() {
    return CommandLineBuildTargetNormalizer.normalizeAll(buckConfig, getArguments());
  }

  public boolean shouldGenerateDotOutput() {
    return generateDotOutput;
  }
}

@@ -636,53 +636,8 @@
 i;%0A%0A
-import com.google.common.base.Preconditions;%0A
 impo
@@ -672,16 +672,16 @@
 .Lists;%0A
+
 %0Aimport 
@@ -1133,48 +1133,8 @@
 t;%0A%0A
-  private final BuckConfig buckConfig;%0A%0A
   @A
@@ -1280,70 +1280,8 @@
 g);%0A
-    this.buckConfig = Preconditions.checkNotNull(buckConfig);%0A
   %7D%0A
@@ -1466,17 +1466,20 @@
 lizeAll(
-b
+getB
 uckConfi
@@ -1479,16 +1479,18 @@
 ckConfig
+()
 , getArg

Use superclass method instead of storing field.