Consolidate instances of the --keep_going flag.

RELNOTES: None.
PiperOrigin-RevId: 179468685
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/BuildView.java b/src/main/java/com/google/devtools/build/lib/analysis/BuildView.java
index 0674cfa..b84126d 100644
--- a/src/main/java/com/google/devtools/build/lib/analysis/BuildView.java
+++ b/src/main/java/com/google/devtools/build/lib/analysis/BuildView.java
@@ -178,20 +178,6 @@
     public int loadingPhaseThreads;
 
     @Option(
-      name = "keep_going",
-      abbrev = 'k',
-      defaultValue = "false",
-      category = "strategy",
-      documentationCategory = OptionDocumentationCategory.EXECUTION_STRATEGY,
-      effectTags = {OptionEffectTag.EAGERNESS_TO_EXIT},
-      help =
-          "Continue as much as possible after an error.  While the target that failed, and those "
-              + "that depend on it, cannot be analyzed (or built), the other prerequisites of "
-              + "these targets can be analyzed (or built) all the same."
-    )
-    public boolean keepGoing;
-
-    @Option(
       name = "analysis_warnings_as_errors",
       deprecationWarning =
           "analysis_warnings_as_errors is now a no-op and will be removed in"
@@ -478,6 +464,7 @@
       BuildConfigurationCollection configurations,
       List<String> aspects,
       Options viewOptions,
+      boolean keepGoing,
       TopLevelArtifactContext topLevelOptions,
       ExtendedEventHandler eventHandler,
       EventBus eventBus)
@@ -596,7 +583,7 @@
               topLevelCtKeys,
               aspectKeys,
               eventBus,
-              viewOptions.keepGoing,
+              keepGoing,
               viewOptions.loadingPhaseThreads);
       setArtifactRoots(skyframeAnalysisResult.getPackageRoots());
     } finally {