diff --git a/build.yml b/build.yml index a1b9d57..437b1a7 100644 --- a/build.yml +++ b/build.yml @@ -15,7 +15,7 @@ targets: doc: Run an integration test depends: bin steps: - # test without -file option + # test without -env option - write: '={BUILD_DIR}/test' text: "#!/bin/sh\necho $FOO\necho $SPAM" - chmod: '={BUILD_DIR}/test' @@ -26,7 +26,7 @@ targets: - if: 'output != "BAR\nEGGS"' then: - throw: "Test failed:\n={output}" - # test with -file option + # test with -env option - $: ['={BUILD_DIR}/dotrun', '-env', '.env2', '={BUILD_DIR}/test'] 1=: output 1x: true diff --git a/dotrun.go b/dotrun.go index 5821b64..222a8ac 100644 --- a/dotrun.go +++ b/dotrun.go @@ -13,7 +13,7 @@ import ( ) const ( - help = `Usage: dotrun [-file .env] command args... + help = `Usage: dotrun [-env .env] command args... -env file Alternative dotenv file command The command to run args The command arguments`