aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAbe Pazos <abe@hamoid.com>2023-02-27 16:06:57 +0100
committerEdwin Jakobs <edwin@rndr.studio>2023-02-28 09:40:19 +0100
commit0e76bcd431d0225fdea6725d8369868407d2f837 (patch)
tree7befd88d51446e6ff79937341722efdb416e21fc /README.md
parent01d45029e6df4390f45b20ca5ec54b438e90b7ae (diff)
downloadart-playground-openrndr-0e76bcd431d0225fdea6725d8369868407d2f837.tar.gz
art-playground-openrndr-0e76bcd431d0225fdea6725d8369868407d2f837.zip
Fix launching custom Kt files from command line
The `application` property was already used. Reusing it breaks things. Use `openrndr.application` instead.
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 9 insertions, 5 deletions
diff --git a/README.md b/README.md
index dab5504..dbdfa7b 100644
--- a/README.md
+++ b/README.md
@@ -21,11 +21,15 @@ To create runnable jars for a platform different from the platform you use to bu
## Run other Kotlin programs from the command line
-By default the `run` task runs the program called `TemplateProgram.kt`.
-If you have other programs under your src/ folder and want
-to run them from the command line use
-`./gradlew -Papplication=MyProgram` to run `MyProgram.kt`.
-A full package name can be specified like this: `-Papplication=foo.bar.MyProgram`.
+By default `./gradlew run` runs a program called `TemplateProgram.kt` but a different one can be provided as an argument:
+
+To run `src/main/kotlin/myProgram.kt`
+
+ ./gradlew -Popenrndr.application=MyProgramKt
+
+To run `src/main/kotlin/foo/bar/myProgram.kt` (assuming `package foo.bar` in myProgram.kt)
+
+ ./gradlew -Popenrndr.application=foo.bar.MyProgramKt
## Github Actions