Add break statement to prevent diagnostics from running env afterward
@@ -253,6 +253,7 @@ public class RunNiFi {
break;
case "diagnostics":
runNiFi.diagnostics(dumpFile, verbose);
+ break;
case "env":
runNiFi.env();
break;
