Skip to content

Commit

Permalink
updates help
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbochi committed Aug 16, 2016
1 parent 8ef70f2 commit 60beb9a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drun
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ set -o pipefail
set -o nounset

usage_noexit() {
echo >&2 'Usage: drun [-hnx] [-E ENV_REGEX] [-v VOL_SPEC]* [image] [command]'
echo >&2 'Usage: drun [-hnx] [-E ENV_REGEX] [-e ENV_SPEC]* [-v VOL_SPEC]* [image] [command]'
echo >&2 ' -h Help'
echo >&2 ' -k Keep container after run (i.e. does not user docker run --rm option)'
echo >&2 ' -n Uses node:AUTO image, where AUTO is detected from a local package.json in any'
echo >&2 ' -x Enables bash xtrace so that exact `docker run` command is displayed'
echo >&2 ' -v VOL_SPEC Adds a --volume option to `docker run`'
echo >&2 ' -e ENV_REGEX Forwards local env variables whose names match ENV_REGEX to container'
echo >&2 ' -e ENV_SPEC Adds a --env option to `docker run`'
echo >&2 ' -E ENV_REGEX Forwards local env variables whose names match ENV_REGEX to container'
}
usage() {
usage_noexit
Expand Down

0 comments on commit 60beb9a

Please sign in to comment.