Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ class KscriptHandler(
DependencyResolver(script.repositories).resolve(script.dependencies) + localArtifacts
}

if (options.containsKey("dependencies")) {
info("Dependencies:")
info(resolvedDependencies.joinToString("\n"))
return
}

// Create temporary dev environment
if (options.containsKey("idea")) {
val path = cache.getOrCreateIdeaProject(script.digest) { basePath ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ object OptionsUtils {
.addOption("h", "help", false, "Prints help information")
.addOption("v", "version", false, "Prints version information")
.addOption("c", "clear-cache", false, "Wipes out cached script jars and urls")
.addOption("n", "dependencies", false, "Prints list of dependencies")
}

fun createHelpText(selfName: String, options: Options): String {
Expand Down