enricher
This commit is contained in:
@@ -13,6 +13,14 @@ import java.util.List;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
// Enable diagnostic mode early before SLF4J initializes
|
||||
for (String arg : args) {
|
||||
if ("--debug".equals(arg)) {
|
||||
System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "debug");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Wiring including the specialized HTML exporter
|
||||
var exporters = List.of(new PlantUml(), new Dot(), new Scxml(), new JsonExporter(), new HtmlExporter());
|
||||
var exportService = new ExportService(exporters);
|
||||
|
||||
@@ -59,11 +59,19 @@ public class HtmlExporterCommand implements Callable<Integer> {
|
||||
@Option(names = {"--no-metadata-pane"}, description = "Disable rendering the left metadata pane (entry points, flows) in the HTML viewer.")
|
||||
private boolean noMetadataPane;
|
||||
|
||||
@Option(names = {"--debug"}, description = "Enable diagnostic mode to show unresolved call chains and detailed analysis logging.", defaultValue = "false")
|
||||
private boolean debug;
|
||||
|
||||
@Override
|
||||
public Integer call() throws Exception {
|
||||
var out = spec.commandLine().getOut();
|
||||
var err = spec.commandLine().getErr();
|
||||
|
||||
if (debug) {
|
||||
System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "debug");
|
||||
out.println(CommandLine.Help.Ansi.AUTO.string("@|bold,cyan Diagnostic mode enabled|@"));
|
||||
}
|
||||
|
||||
if (inputDir == null && jsonFile == null) {
|
||||
inputDir = Path.of(".");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user