void (String[] args) { try { initLogger(); List<String> effectiveArgs = new ArrayList<>(); for (String arg : args) { if (arg.startsWith("@")) { effectiveArgs.addAll(Files.readAllLines(Path.of(arg.substring(1)))); } else { effectiveArgs.add(arg); } } //noinspection SSBasedInspection _main(effectiveArgs.toArray(new String[0])); } catch (Throwable t) { LOG.log(Level.SEVERE, "internal error", t); t.printStackTrace(System.err); System.exit(2); } }