diff --git a/daml-script/runner/src/main/scala/com/digitalasset/daml/lf/engine/script/RunnerConfig.scala b/daml-script/runner/src/main/scala/com/digitalasset/daml/lf/engine/script/RunnerConfig.scala index 50d05fcf69a..64ed6fed568 100644 --- a/daml-script/runner/src/main/scala/com/digitalasset/daml/lf/engine/script/RunnerConfig.scala +++ b/daml-script/runner/src/main/scala/com/digitalasset/daml/lf/engine/script/RunnerConfig.scala @@ -72,6 +72,8 @@ object RunnerConfig { } .text("Path to a file containing the input value for the script in JSON format.") + help("help").text("Print this usage text") + checkConfig(c => { if (c.ledgerHost.isDefined != c.ledgerPort.isDefined) { failure("Must specify both --ledger-host and --ledger-port") diff --git a/daml-script/runner/src/main/scala/com/digitalasset/daml/lf/engine/script/TestConfig.scala b/daml-script/runner/src/main/scala/com/digitalasset/daml/lf/engine/script/TestConfig.scala index c2e6413631b..ea826dc236b 100644 --- a/daml-script/runner/src/main/scala/com/digitalasset/daml/lf/engine/script/TestConfig.scala +++ b/daml-script/runner/src/main/scala/com/digitalasset/daml/lf/engine/script/TestConfig.scala @@ -53,6 +53,8 @@ object TestConfig { } .text("TTL in seconds used for commands emitted by the trigger. Defaults to 30s.") + help("help").text("Print this usage text") + checkConfig(c => { if (c.ledgerHost.isDefined != c.ledgerPort.isDefined) { failure("Must specify both --ledger-host and --ledger-port") diff --git a/dev-env/bin/daml-sdk-head b/dev-env/bin/daml-sdk-head index c998d6697c7..1cf6edb890d 100755 --- a/dev-env/bin/daml-sdk-head +++ b/dev-env/bin/daml-sdk-head @@ -92,7 +92,7 @@ else fi cat > $DAML_HOME/bin/daml-head << EOF -#!/bin/bash +#!/bin/sh exec env DAML_SDK_VERSION=0.0.0 $DAML_HEAD_SDK/daml/daml "\$@" EOF chmod +x $DAML_HOME/bin/daml-head diff --git a/triggers/runner/src/main/scala/com/digitalasset/daml/lf/engine/trigger/RunnerConfig.scala b/triggers/runner/src/main/scala/com/digitalasset/daml/lf/engine/trigger/RunnerConfig.scala index 23e5e7f7ec6..8dff30399c4 100644 --- a/triggers/runner/src/main/scala/com/digitalasset/daml/lf/engine/trigger/RunnerConfig.scala +++ b/triggers/runner/src/main/scala/com/digitalasset/daml/lf/engine/trigger/RunnerConfig.scala @@ -70,6 +70,8 @@ object RunnerConfig { } .text("File from which the access token will be read, required to interact with an authenticated ledger") + help("help").text("Print this usage text") + cmd("list") .action((_, c) => c.copy(listTriggers = true)) .text("List the triggers in the DAR.")