Pass Command-line Arguments to an Executable

Problem

You need to run an executable that requires command-line arguments.

Solution

With Pants, you can pass arguments directly to the process that you're executing by using the special passthrough argument --:

$ ./pants run myserver:bin -- -log.level='DEBUG'

Everything after the passthrough argument (--) will be passed directly as command-line arguments to the executable created by the myserver:bin target.

See Also

Generated by publish_docs from dist/markdown/html/src/docs/common_tasks/cli_args.html 2017-10-20T21:24:31.697396