./pants run [args]

Runs a binary target.

This goal propagates the return code of the underlying executable. Run echo $? to inspect the resulting return code.

Config section: [run]

Basic options

args

--run-args="[<shell_str>, <shell_str>, ...]", ... -- [<shell_str> [<shell_str> [...]]]
PANTS_RUN_ARGS
default: []

Arguments to pass directly to the executed target, e.g. --run-args="val1 val2 --debug"


Advanced options

None

Deprecated options

None

Related subsystems

download-pex-bin, grpc-python-plugin, lambdex, mypy-protobuf, pex, pex-binary-defaults, protoc, python-infer, python-native-code, python-protobuf, python-repos, python-setup, run, setup-py-generation, setuptools, shell-setup, shellcheck, source, subprocess-environment


Did this page help you?