]> nmode's Git Repositories - signal-cli/commitdiff
Short comment to explain how to pass arguments to main application
authorRiamse <andrewwang43@gmail.com>
Wed, 16 May 2018 02:29:04 +0000 (22:29 -0400)
committerAsamK <asamk@gmx.de>
Thu, 17 May 2018 16:07:31 +0000 (18:07 +0200)
build.gradle

index 37f97ce5146254dac9ebbfb905d5c5912df70536..3354d30ee6c6756001140be79900bac1d767e13b 100644 (file)
@@ -38,6 +38,8 @@ jar {
 
 run {
     if (project.hasProperty("appArgs")) {
+        // allow passing command-line arguments to the main application e.g.:
+        // $ gradle run -PappArgs="['-u', '+...', 'daemon', '--json']"
         args Eval.me(appArgs)
     }
 }