From 4b8b22c493794e06f51eb796fd2d6f58cc7cc680 Mon Sep 17 00:00:00 2001 From: Wagyourtail Date: Wed, 4 Dec 2024 02:47:51 -0600 Subject: [PATCH] add option to disable shade inlining in cli --- src/main/java/xyz/wagyourtail/jvmdg/cli/Main.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/xyz/wagyourtail/jvmdg/cli/Main.java b/src/main/java/xyz/wagyourtail/jvmdg/cli/Main.java index dda3ad3..485b7d1 100644 --- a/src/main/java/xyz/wagyourtail/jvmdg/cli/Main.java +++ b/src/main/java/xyz/wagyourtail/jvmdg/cli/Main.java @@ -42,6 +42,7 @@ public static void main(String[] args) throws IOException, ClassNotFoundExceptio new Arguments("--dumpClasses", "Dump classes to the debug folder", new String[]{"-d"}, null), new Arguments("downgradeApi", "Retrieves and downgrades the java api jar", null, new String[]{"outputPath"}) ), + new Arguments("--disable-inlining", "Disables shade inlining api's that are only used in one class into that class", null, null), new Arguments("downgrade", "Downgrades a jar or folder", null, null).addChildren( input, classpath @@ -148,6 +149,8 @@ public static void main(String[] args) throws IOException, ClassNotFoundExceptio } } flags.multiReleaseVersions = versions; + case "--disable-inlining": + flags.shadeInlining = false; default: } }