package scala.cli.internal;

import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;
import org.graalvm.nativeimage.Platform;
import org.graalvm.nativeimage.Platforms;

import java.nio.file.Path;

@TargetClass(className = "scala.cli.internal.Argv0")
@Platforms({Platform.LINUX.class, Platform.DARWIN.class})
final class Argv0Subst {

    @Substitute
    String get(String defaultValue) {
        return com.oracle.svm.core.JavaMainWrapper.getCRuntimeArgument0();
    }

}

@@ -1,21 +1,24 @@
 package 
-scala
+coursier
 .cli.int
@@ -264,13 +264,16 @@
  = %22
-scala
+coursier
 .cli

Fix GraalVM substitution